File indexing completed on 2024-04-14 15:52:15

0001 /*
0002     SPDX-FileCopyrightText: 2010 Jan Lepper <dehtris@yahoo.de>
0003     SPDX-FileCopyrightText: 2010-2022 Krusader Krew <https://krusader.org>
0004 
0005     SPDX-License-Identifier: GPL-2.0-or-later
0006 */
0007 
0008 #ifndef ABSTRACTPANELMANAGER_H
0009 #define ABSTRACTPANELMANAGER_H
0010 
0011 // QtCore
0012 #include <QUrl>
0013 
0014 class KrPanel;
0015 
0016 class AbstractPanelManager
0017 {
0018 public:
0019     virtual ~AbstractPanelManager()
0020     {
0021     }
0022     virtual bool isLeft() const = 0;
0023     virtual AbstractPanelManager *otherManager() const = 0;
0024     virtual KrPanel *currentPanel() const = 0;
0025     virtual void newTab(const QUrl &, int insertIndex = -1) = 0;
0026     virtual void duplicateTab(const QUrl &, KrPanel *nextTo = nullptr) = 0;
0027 };
0028 
0029 #endif // ABSTRACTPANELMANAGER_H