File indexing completed on 2025-01-26 05:24:15
0001 /* 0002 This file is part of the Kasten Framework, made within the KDE community. 0003 0004 SPDX-FileCopyrightText: 2009 Friedrich W. H. Kossebau <kossebau@kde.org> 0005 0006 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL 0007 */ 0008 0009 #ifndef KASTEN_SWITCHVIEWCONTROLLER_HPP 0010 #define KASTEN_SWITCHVIEWCONTROLLER_HPP 0011 0012 // Kasten gui 0013 #include <Kasten/AbstractXmlGuiController> 0014 0015 class KXMLGUIClient; 0016 class QAction; 0017 0018 namespace Kasten { 0019 0020 class AbstractGroupedViews; 0021 0022 class SwitchViewController : public AbstractXmlGuiController 0023 { 0024 Q_OBJECT 0025 0026 public: 0027 SwitchViewController(AbstractGroupedViews* groupedViews, KXMLGUIClient* guiClient); 0028 0029 public: // AbstractXmlGuiController API 0030 void setTargetModel(AbstractModel* model) override; 0031 0032 private Q_SLOTS: 0033 void forward(); 0034 void backward(); 0035 0036 void updateActions(); 0037 0038 private: 0039 AbstractGroupedViews* mGroupedViews; 0040 0041 QAction* mForwardAction; 0042 QAction* mBackwardAction; 0043 }; 0044 0045 } 0046 0047 #endif