-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheditor.h
63 lines (52 loc) · 1.28 KB
/
editor.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#ifndef EDITOR_H
#define EDITOR_H
#include "instrument_panel.h"
#include <QMenu>
#include <QAction>
#include <QDialog>
#include <QLineEdit>
#include <QList>
#include <QJsonValueRef>
#include <QDoubleSpinBox>
#include <QCheckBox>
class InstrumentPanel;
class Editor : public QWidget
{
Q_OBJECT
QComboBox* available;
InstrumentPanel* editable;
QJsonObject params;
QLineEdit* name;
QLineEdit* title;
QLineEdit* suffix;
QLineEdit* customColor;
QLineEdit* criticalColor;
QLineEdit* fontName;
QDoubleSpinBox* criticalValue;
QCheckBox* hideValue;
QDoubleSpinBox* maxangleEdit;
QDoubleSpinBox* maxvalueEdit;
QLineEdit* back_picEdit;
QLineEdit* needle_picEdit;
QDoubleSpinBox* zeroangleEdit;
QDialog* ask;
public:
explicit Editor(QJsonObject params, InstrumentPanel* panel, QWidget *parent = 0);
signals:
void settings_done(QJsonObject*);
void settings_updated(QJsonObject*);
public slots:
void rem_instrument();
void done();
void add_generic();
void add_generic_params();
void add_flaps();
void add_vario();
void add_horizon();
void add_target();
void add_target_angle();
void add_generic_analogue();
void add_generic_analogue_params();
void add_map();
};
#endif // EDITOR_H