|
@@ -6,10 +6,10 @@ graph widget. The original motivation for the class comes from a need to
|
6
|
6
|
configure secondary axes.
|
7
|
7
|
|
8
|
8
|
@<Class declarations@>=
|
9
|
|
-class GraphSettingsWidget : public QWidget
|
10
|
|
-{
|
11
|
|
- Q_OBJECT
|
12
|
|
- public:
|
|
9
|
+class GraphSettingsWidget : public QWidget@/
|
|
10
|
+{@/
|
|
11
|
+ @[Q_OBJECT@]@;
|
|
12
|
+ public:@/
|
13
|
13
|
GraphSettingsWidget();
|
14
|
14
|
};
|
15
|
15
|
|
|
@@ -22,6 +22,8 @@ tab set becomes excessively large but for now this is the best that I can
|
22
|
22
|
think of. If anybody with UI design experience would like to propose something
|
23
|
23
|
better I would be glad to consider it.
|
24
|
24
|
|
|
25
|
+@s GraphSettingsRelativeTab int
|
|
26
|
+
|
25
|
27
|
@<GraphSettingsWidget implementation@>=
|
26
|
28
|
GraphSettingsWidget::GraphSettingsWidget() : QWidget(NULL)
|
27
|
29
|
{
|
|
@@ -42,18 +44,18 @@ used to construct the relative values and the style of coffee roasting. It is
|
42
|
44
|
also possible to disable the graphing of relative temperature measurements.
|
43
|
45
|
|
44
|
46
|
@<Class declarations@>=
|
45
|
|
-class GraphSettingsRelativeTab : public QWidget
|
46
|
|
-{
|
47
|
|
- Q_OBJECT
|
48
|
|
- public:
|
49
|
|
- GraphSettingsRelativeTab();
|
50
|
|
- public slots:
|
|
47
|
+class GraphSettingsRelativeTab : public QWidget@/
|
|
48
|
+{@/
|
|
49
|
+ @[Q_OBJECT@]@;
|
|
50
|
+ public:@/
|
|
51
|
+ GraphSettingsRelativeTab();@/
|
|
52
|
+ @[public slots@]:@/
|
51
|
53
|
void updateEnableSetting(bool enable);
|
52
|
54
|
void updateColorSetting(const QString &color);
|
53
|
55
|
void updateAxisSetting(const QString &gridList);
|
54
|
56
|
void updateUnit(int unit);
|
55
|
|
- void showColorPicker();
|
56
|
|
- private:
|
|
57
|
+ void showColorPicker();@/
|
|
58
|
+ private:@/
|
57
|
59
|
QLineEdit *colorEdit;
|
58
|
60
|
};
|
59
|
61
|
|
|
@@ -132,7 +134,7 @@ void GraphSettingsRelativeTab::updateAxisSetting(const QString &gridList)
|
132
|
134
|
QStringList numbers;
|
133
|
135
|
foreach(QString text, points)
|
134
|
136
|
{
|
135
|
|
- bool okay = false;
|
|
137
|
+ bool okay = @[false@];
|
136
|
138
|
text.toDouble(&okay);
|
137
|
139
|
if(okay)
|
138
|
140
|
{
|