dRonin  adbada4
dRonin GCS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Groups Pages
configosdwidget.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 #ifndef CONFIGOSDWIDGET_H
27 #define CONFIGOSDWIDGET_H
28 
29 #include "ui_osd.h"
30 
34 #include "uavobjects/uavobject.h"
35 
36 #include "onscreendisplaysettings.h"
37 #include "manualcontrolcommand.h"
38 #include "manualcontrolsettings.h"
39 
40 #include "onscreendisplaypagesettings.h"
41 #include "onscreendisplaypagesettings2.h"
42 #include "onscreendisplaypagesettings3.h"
43 #include "onscreendisplaypagesettings4.h"
44 
45 namespace Ui {
46 class Osd;
47 class OsdPage;
48 }
49 
51 {
52  Q_OBJECT
53 
54 public:
55  ConfigOsdWidget(QWidget *parent = nullptr);
57 
58 private slots:
59  void movePageSlider();
60  void updatePositionSlider();
61  void setCustomText();
62  void getCustomText();
63 
64 private:
65  void setupOsdPage(Ui::OsdPage *page, QWidget *page_widget, const QString &objName);
66  void copyOsdPage(int to, int from);
67  quint8 scaleSwitchChannel(quint8 channelNumber, quint8 switchPositions);
68 
69  Ui::Osd *ui;
70  Ui::OsdPage *ui_pages[4];
71  QWidget *pages[4];
72 
73  OnScreenDisplaySettings *osdSettingsObj;
74 
75  ManualControlSettings *manualSettingsObj;
76  ManualControlSettings::DataFields manualSettingsData;
77  ManualControlCommand *manualCommandObj;
78  ManualControlCommand::DataFields manualCommandData;
79 
80 protected:
81  void resizeEvent(QResizeEvent *event);
82  virtual void enableControls(bool enable);
83 };
84 
85 #endif // CONFIGOSDWIDGET_H
virtual void enableControls(bool enable)
void resizeEvent(QResizeEvent *event)
ConfigOsdWidget(QWidget *parent=nullptr)