1 /***************************************************************************** 2 * Copyright (C) 2010 Jan Lepper <dehtris@yahoo.de> * 3 * Copyright (C) 2010-2019 Krusader Krew [https://krusader.org] * 4 * * 5 * This file is part of Krusader [https://krusader.org]. * 6 * * 7 * Krusader is free software: you can redistribute it and/or modify * 8 * it under the terms of the GNU General Public License as published by * 9 * the Free Software Foundation, either version 2 of the License, or * 10 * (at your option) any later version. * 11 * * 12 * Krusader is distributed in the hope that it will be useful, * 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 15 * GNU General Public License for more details. * 16 * * 17 * You should have received a copy of the GNU General Public License * 18 * along with Krusader. If not, see [http://www.gnu.org/licenses/]. * 19 *****************************************************************************/ 20 21 #ifndef ABSTRACTPANELMANAGER_H 22 #define ABSTRACTPANELMANAGER_H 23 24 // QtCore 25 #include <QUrl> 26 27 class KrPanel; 28 29 class AbstractPanelManager 30 { 31 public: ~AbstractPanelManager()32 virtual ~AbstractPanelManager() {} 33 virtual bool isLeft() const = 0; 34 virtual AbstractPanelManager *otherManager() const = 0; 35 virtual KrPanel *currentPanel() const = 0; 36 virtual void newTab(const QUrl&, KrPanel *nextTo = 0) = 0; 37 }; 38 39 40 #endif // ABSTRACTPANELMANAGER_H 41