File indexing completed on 2024-06-02 06:03:22
0001 /* 0002 This file is part of the Kasten Framework, made within the KDE community. 0003 0004 SPDX-FileCopyrightText: 2006, 2008, 2010, 2019 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_ABSTRACTXMLGUICONTROLLER_HPP 0010 #define KASTEN_ABSTRACTXMLGUICONTROLLER_HPP 0011 0012 // lib 0013 #include "kastengui_export.hpp" 0014 // Qt 0015 #include <QObject> 0016 // Std 0017 #include <memory> 0018 0019 class KXMLGUIClient; 0020 0021 namespace Kasten { 0022 0023 class AbstractModel; 0024 0025 /* there are controllers for 0026 * (focused) documents 0027 * document collections (projects) 0028 * static (related (or dependent) data) 0029 * dynamic (session) 0030 * views 0031 * view collections, like tabbed view or mdi 0032 * program 0033 * ... 0034 Controllers can plug into the 0035 */ 0036 class KASTENGUI_EXPORT AbstractXmlGuiController : public QObject 0037 { 0038 Q_OBJECT 0039 0040 protected: 0041 AbstractXmlGuiController(); 0042 0043 public: 0044 ~AbstractXmlGuiController() override; 0045 0046 public: // API to be implemented 0047 // void plug( KXMLGUIClient* guiClient ); 0048 virtual void setTargetModel(AbstractModel* model); // = 0; 0049 0050 private: 0051 const std::unique_ptr<class AbstractXmlGuiControllerPrivate> d_ptr; 0052 }; 0053 0054 } 0055 0056 #endif