dRonin  adbada4
dRonin GCS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Groups Pages
configgadgetwidget.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 #ifndef CONFIGGADGETWIDGET_H
28 #define CONFIGGADGETWIDGET_H
29 
33 #include "uavobjects/uavobject.h"
34 #include "objectpersistence.h"
35 #include <QWidget>
36 #include <QList>
37 #include <QTextBrowser>
38 #include "utils/pathutils.h"
40 #include "../uavobjectwidgetutils/configtaskwidget.h"
41 
42 class ConfigGadgetWidget : public QWidget
43 {
44  Q_OBJECT
45  QTextBrowser *help;
46  int chunk;
47 
48 public:
49  ConfigGadgetWidget(QWidget *parent = nullptr);
51  enum widgetTabs {
52  hardware = 0,
62  osd,
64  };
65  void startInputWizard();
66  void changeTab(int i);
67 
68 public slots:
69  void onAutopilotConnect();
70  void onAutopilotDisconnect();
71  void tabAboutToChange(int i, bool *);
72  void deferredLoader();
73 
74 signals:
75  void autopilotConnected();
76  void autopilotDisconnected();
77 
78 protected:
79  void resizeEvent(QResizeEvent *event);
80  void paintEvent(QPaintEvent *event);
82 
83 private:
84  UAVDataObject *oplinkStatusObj;
85  int lastTabIndex;
86  // A timer that timesout the connction to the OPLink.
87  QTimer *oplinkTimeout;
88  bool oplinkConnected;
89 };
90 
91 #endif // CONFIGGADGETWIDGET_H
MyTabbedStackWidget * ftw
void tabAboutToChange(int i, bool *)
for i
Definition: OPPlots.m:140
ConfigGadgetWidget(QWidget *parent=nullptr)
void resizeEvent(QResizeEvent *event)
void paintEvent(QPaintEvent *event)
void autopilotDisconnected()