dRonin  adbada4
dRonin GCS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Groups Pages
configgadget.h
Go to the documentation of this file.
1 
13 /*
14  * This program is free software; you can redistribute it and/or modify
15  * it under the terms of the GNU General Public License as published by
16  * the Free Software Foundation; either version 3 of the License, or
17  * (at your option) any later version.
18  *
19  * This program is distributed in the hope that it will be useful, but
20  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
21  * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
22  * for more details.
23  *
24  * You should have received a copy of the GNU General Public License along
25  * with this program; if not, see <http://www.gnu.org/licenses/>
26  *
27  * Additional note on redistribution: The copyright and license notices above
28  * must be maintained in each individual source file that is a derivative work
29  * of this source file; otherwise redistribution is prohibited.
30  */
31 #ifndef CONFIGGADGET_H
32 #define CONFIGGADGET_H
33 
34 #include <coreplugin/iuavgadget.h>
37 #include <QWidget>
38 #include <QTimer>
39 
40 class IUAVGadget;
41 // class QList<int>;
42 class QWidget;
43 class QString;
44 class ConfigGadgetWidget;
45 class Ui_ConfigGadget;
46 
47 using namespace Core;
48 
50 {
51  Q_OBJECT
52 public:
53  ConfigGadget(QString classId, ConfigGadgetWidget *widget, QWidget *parent = nullptr);
54  ~ConfigGadget();
55 
56  QWidget *widget() { return reinterpret_cast<QWidget *>(m_widget); }
57  void loadConfiguration(IUAVGadgetConfiguration *config);
58 
59 private:
60  ConfigGadgetWidget *m_widget;
61 };
62 
63 #endif // CONFIGGADGET_H
QWidget * widget()
Definition: configgadget.h:56