File indexing completed on 2024-05-26 05:56:36

0001 /*
0002     This file is part of the Okteta Kasten module, 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_SELECTRANGECONTROLLER_HPP
0010 #define KASTEN_SELECTRANGECONTROLLER_HPP
0011 
0012 // Kasten gui
0013 #include <Kasten/AbstractXmlGuiController>
0014 
0015 class QAction;
0016 class KXMLGUIClient;
0017 
0018 namespace Kasten {
0019 
0020 class SelectRangeToolView;
0021 class SelectRangeTool;
0022 namespace If {
0023 class ToolInlineViewable;
0024 }
0025 
0026 class SelectRangeController : public AbstractXmlGuiController
0027 {
0028     Q_OBJECT
0029 
0030 public:
0031     explicit SelectRangeController(If::ToolInlineViewable* toolInlineViewable, KXMLGUIClient* guiClient);
0032     ~SelectRangeController() override;
0033 
0034 public: // AbstractXmlGuiController API
0035     void setTargetModel(AbstractModel* model) override;
0036 
0037 private Q_SLOTS: // action slots
0038     void select();
0039 
0040 private:
0041     QAction* mSelectAction;
0042 
0043     If::ToolInlineViewable* mToolInlineViewable;
0044 
0045     SelectRangeToolView* mView;
0046     SelectRangeTool* mTool;
0047 };
0048 
0049 }
0050 
0051 #endif