dRonin  adbada4
dRonin GCS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Groups Pages
pfdqmlgadgetwidget.h
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or modify
3  * it under the terms of the GNU General Public License as published by
4  * the Free Software Foundation; either version 3 of the License, or
5  * (at your option) any later version.
6  *
7  * This program is distributed in the hope that it will be useful, but
8  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
9  * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
10  * for more details.
11  *
12  * You should have received a copy of the GNU General Public License along
13  * with this program; if not, see <http://www.gnu.org/licenses/>
14  */
15 
16 #ifndef PFDQMLGADGETWIDGET_H_
17 #define PFDQMLGADGETWIDGET_H_
18 
20 #include <QtQuick/QQuickView>
21 
22 class UAVObjectManager;
23 
24 class PfdQmlGadgetWidget : public QQuickView
25 {
26  Q_OBJECT
27 
28 public:
29  PfdQmlGadgetWidget(QWindow *parent = nullptr);
31  void setQmlFile(QString fn);
32 
33 public slots:
34  void setSettingsMap(const QVariantMap &settings);
35 
36 protected:
37  void mouseReleaseEvent(QMouseEvent *event);
38 
39 private:
40  QStringList objectsToExport;
41  QString m_qmlFileName;
42 
43  UAVObjectManager *m_objManager;
44  void exportUAVOInstance(const QString &objectName, int instId);
45  void resetUAVOExport(const QString &objectName, int instId);
46 };
47 
48 #endif /* PFDQMLGADGETWIDGET_H_ */
void mouseReleaseEvent(QMouseEvent *event)
void setSettingsMap(const QVariantMap &settings)
PfdQmlGadgetWidget(QWindow *parent=nullptr)
void setQmlFile(QString fn)