dRonin  adbada4
dRonin GCS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Groups Pages
uavgadgetoptionspagedecorator.h
Go to the documentation of this file.
1 
12 /*
13  * This program is free software; you can redistribute it and/or modify
14  * it under the terms of the GNU General Public License as published by
15  * the Free Software Foundation; either version 3 of the License, or
16  * (at your option) any later version.
17  *
18  * This program is distributed in the hope that it will be useful, but
19  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
20  * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21  * for more details.
22  *
23  * You should have received a copy of the GNU General Public License along
24  * with this program; if not, see <http://www.gnu.org/licenses/>
25  */
26 
27 #ifndef UAVGADGETOPTIONSPAGEDECORATOR_H
28 #define UAVGADGETOPTIONSPAGEDECORATOR_H
29 
31 #include <coreplugin/core_global.h>
33 
34 class Ui_TopOptionsPage;
35 
36 namespace Core {
37 
38 class IUAVGadgetConfiguration;
39 class UAVGadgetInstanceManager;
40 
42 {
43  Q_OBJECT
44 public:
46  bool isSingleConfigurationGadget = false,
47  QObject *parent = nullptr);
48 
49  QString id() const { return m_id; }
50  QString trName() const { return m_id; }
51  QString category() const { return m_category; }
52  QString trCategory() const { return m_categoryTr; }
53 
54  QWidget *createPage(QWidget *parent);
55  void apply();
56  void finish();
57 
58 signals:
59 
60 public slots:
61 
62 private slots:
63  void cloneConfiguration();
64  void deleteConfiguration();
65  void textEdited(QString);
66 
67 private:
68  IOptionsPage *m_optionsPage;
69  IUAVGadgetConfiguration *m_config;
70  bool m_isSingleConfigurationGadget;
71  UAVGadgetInstanceManager *m_instanceManager;
72  QString m_id;
73  QString m_category;
74  QString m_categoryTr;
75 
76  Ui_TopOptionsPage *m_page;
77 };
78 
79 } // namespace Core
80 
81 #endif // UAVGADGETOPTIONSPAGEDECORATOR_H
The IOptionsPage is an interface for providing options pages.
Definition: ioptionspage.h:42