forked from vranki/ExtPlane-Panel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
panel.h
61 lines (45 loc) · 1.13 KB
/
panel.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
#ifndef PANEL_H
#define PANEL_H
#include <QObject>
#include <QList>
#include <QDebug>
#include "settings.h"
// Forward declarations
class PanelItem;
// Typedefs
typedef QList<PanelItem*> PanelItemList;
// Defs
#define PANEL_PANELITEM_COVER_ZVALUE 9000
#define PANEL_PANELITEM_GLOW_ZVALUE 9100
#define PANEL_PANELINFO_ZVALUE 9500
/**
* @brief A logical Panel
*
* Contains references to the panel's current PanelItems. The Panel is
* shared between all the PanelItems.
*
* Note: Called ExtPlanePanel instead of Panel because of Qt's QFrame::Panel
* name conflict. We might consider using namespaces?
*
* @see PanelItem, PanelWindow
*/
class ExtPlanePanel : public QObject
{
Q_OBJECT
public:
explicit ExtPlanePanel(Settings *appSettings, QObject *parent = 0);
~ExtPlanePanel();
inline PanelItemList* items() { return _items; }
signals:
public slots:
public:
Settings *appSettings;
QSettings *settings; // Contains all PanelItem settings
int rotation; // Master rotation of the panel
QString name;
QString groupName;
bool hasAvionicsPower;
private:
PanelItemList *_items;
};
#endif // PANEL_H