dRonin  adbada4
dRonin GCS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Groups Pages
metadata_dialog.h
Go to the documentation of this file.
1 
11 /*
12  * This program is free software; you can redistribute it and/or modify
13  * it under the terms of the GNU General Public License as published by
14  * the Free Software Foundation; either version 3 of the License, or
15  * (at your option) any later version.
16  *
17  * This program is distributed in the hope that it will be useful, but
18  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
19  * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
20  * for more details.
21  *
22  * You should have received a copy of the GNU General Public License along
23  * with this program; if not, see <http://www.gnu.org/licenses/>
24  */
25 
26 #ifndef METADATA_DIALOG_H_
27 #define METADATA_DIALOG_H_
28 
29 #include "uavobjects/uavobject.h"
30 
31 #include "ui_metadata_dialog.h"
32 
33 class MetadataDialog : public QDialog
34 {
35  Q_OBJECT
36 
37 public:
38  MetadataDialog(UAVObject::Metadata mdata, QWidget *parent = nullptr);
40 
41  UAVObject::Metadata getMetadata() { return *m_mdata; }
42  bool getResetDefaults_flag() { return resetDefaults_flag; }
43  bool getSaveState_flag() { return saveMetadata_flag; }
44 
45 signals:
46 
47 protected slots:
48 
49 private slots:
50  void saveApplyMetadata();
51  void resetMetadataToDefaults();
52  void cancelChanges();
53 
54 private:
55  void fillWidgets();
56 
57  UAVObject::Metadata *m_mdata;
58  Ui_MetadataDialog metadata_editor;
59  bool resetDefaults_flag;
60  bool saveMetadata_flag;
61 };
62 
63 #endif /* METADATA_DIALOG_H_ */
bool getResetDefaults_flag()
MetadataDialog(UAVObject::Metadata mdata, QWidget *parent=nullptr)
UAVObject::Metadata getMetadata()
bool getSaveState_flag()