-
Notifications
You must be signed in to change notification settings - Fork 0
/
widgetdatacontrol.h
71 lines (51 loc) · 1.87 KB
/
widgetdatacontrol.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
64
65
66
67
68
69
70
71
#ifndef WIDGETDATACONTROL_H
#define WIDGETDATACONTROL_H
#include <QString>
class QSettings;
class QWidget;
class WidgetDataControl
{
public:
WidgetDataControl();
enum controlFlagsEnum
{
controlFlagsRecursion = 0x1,
controlFlagsPos = 0x2,
controlFlagsSize = 0x4,
controlFlagsGeometry = 0x6,
controlFlagsEnabled = 0x8,
// 00000001
// 00000010
// 00000100
// 00001000
controlFlagsQLineEdit = 0x10,
controlFlagsQTextEdit = 0x20,
controlFlagsQSpinBox = 0x40,
controlFlagsQComboBox = 0x60,
controlFlagsQDoubleSpinBox = 0x80,
// 00010000
// 00100000
// 01000000
// 10000000
controlFlagsQTimeEdit = 0x100,
controlFlagsQDateEdit = 0x200,
controlFlagsQDateTimeEdit = 0x400,
controlFlagsQDial = 0x800,
controlFlagsQSlider = 0x1000,
controlFlagsQAbstractSlider = 0x2000,
controlFlagsInputWidgets = 0xfff0,
controlFlagsQLabel = 0x10000,
controlFlagsQTextBrowser = 0x20000,
controlFlagsQLCDNumber = 0x40000,
controlFlagsQProgressBar = 0x80000,
controlFlagsDisplayWidgets = 0xf0000,
controlFlagsQRadioButton = 0x1000000,
controlFlagsQCheckBox = 0x2000000,
controlFlagsButtons = 0xf000000,
controlFlagsAll = 0xffffffff
};
public:
static void save(QSettings *settings, const QWidget *widget, const controlFlagsEnum &controlFlags, QString Group);
static void read(QSettings *settings, QWidget *widget, const controlFlagsEnum &controlFlags, QString Group);
};
#endif // WIDGETDATACONTROL_H