File indexing completed on 2024-09-22 05:16:06

0001 /*
0002     This file is part of the Kasten Framework, made within the KDE community.
0003 
0004     SPDX-FileCopyrightText: 2008 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_TOOLLISTMENUCONTROLLER_HPP
0010 #define KASTEN_TOOLLISTMENUCONTROLLER_HPP
0011 
0012 // Kasten gui
0013 #include <Kasten/AbstractXmlGuiController>
0014 // Qt
0015 #include <QList>
0016 
0017 class QAction;
0018 class KXMLGUIClient;
0019 
0020 namespace Kasten {
0021 
0022 class ViewManager;
0023 
0024 namespace If {
0025 class WidgetsDockable;
0026 }
0027 
0028 class ToolListMenuController : public AbstractXmlGuiController
0029 {
0030     Q_OBJECT
0031 
0032 public:
0033     ToolListMenuController(If::WidgetsDockable* widgetsDockable, KXMLGUIClient* guiClient);
0034 
0035 public: // AbstractXmlGuiController API
0036     void setTargetModel(AbstractModel* model) override;
0037 
0038 private:
0039     void updateActions();
0040 
0041 private:
0042     If::WidgetsDockable* mWidgetsDockable;
0043     KXMLGUIClient* mGuiClient;
0044 
0045     QList<QAction*> mToolActionList;
0046 };
0047 
0048 }
0049 
0050 #endif