37 : IUAVGadgetConfiguration(classId, parent)
38 , m_defaultDial(
"Unknown")
39 , dialBackgroundID(
"background")
40 , dialForegroundID(
"foreground")
41 , dialNeedleID1(
"needle")
42 , dialNeedleID2(
"needle2")
43 , dialNeedleID3(
"needle3")
45 , needle1MaxValue(100)
47 , needle2MaxValue(100)
49 , needle3MaxValue(100)
53 , needle1Move(
"Rotate")
54 , needle2Move(
"Rotate")
55 , needle3Move(
"Rotate")
59 if (qSettings !=
nullptr) {
60 QString
dialFile = qSettings->value(
"dialFile").toString();
63 dialBackgroundID = qSettings->value(
"dialBackgroundID").toString();
64 dialForegroundID = qSettings->value(
"dialForegroundID").toString();
65 dialNeedleID1 = qSettings->value(
"dialNeedleID1").toString();
66 dialNeedleID2 = qSettings->value(
"dialNeedleID2").toString();
67 dialNeedleID3 = qSettings->value(
"dialNeedleID3").toString();
68 needle1MinValue = qSettings->value(
"needle1MinValue").toDouble();
69 needle1MaxValue = qSettings->value(
"needle1MaxValue").toDouble();
70 needle2MinValue = qSettings->value(
"needle2MinValue").toDouble();
71 needle2MaxValue = qSettings->value(
"needle2MaxValue").toDouble();
72 needle3MinValue = qSettings->value(
"needle3MinValue").toDouble();
73 needle3MaxValue = qSettings->value(
"needle3MaxValue").toDouble();
74 needle1DataObject = qSettings->value(
"needle1DataObject").toString();
75 needle1ObjectField = qSettings->value(
"needle1ObjectField").toString();
76 needle2DataObject = qSettings->value(
"needle2DataObject").toString();
77 needle2ObjectField = qSettings->value(
"needle2ObjectField").toString();
78 needle3DataObject = qSettings->value(
"needle3DataObject").toString();
79 needle3ObjectField = qSettings->value(
"needle3ObjectField").toString();
80 needle1Factor = qSettings->value(
"needle1Factor").toDouble();
81 needle2Factor = qSettings->value(
"needle2Factor").toDouble();
82 needle3Factor = qSettings->value(
"needle3Factor").toDouble();
83 needle1Move = qSettings->value(
"needle1Move").toString();
84 needle2Move = qSettings->value(
"needle2Move").toString();
85 needle3Move = qSettings->value(
"needle3Move").toString();
86 font = qSettings->value(
"font").toString();
87 beSmooth = qSettings->value(
"beSmooth").toBool();
98 m->m_defaultDial = m_defaultDial;
123 m->beSmooth = beSmooth;
135 settings->setValue(
"dialFile", dialFile);
137 settings->setValue(
"dialBackgroundID", dialBackgroundID);
138 settings->setValue(
"dialForegroundID", dialForegroundID);
140 settings->setValue(
"dialNeedleID1", dialNeedleID1);
141 settings->setValue(
"dialNeedleID2", dialNeedleID2);
142 settings->setValue(
"dialNeedleID3", dialNeedleID3);
144 settings->setValue(
"needle1MinValue", needle1MinValue);
145 settings->setValue(
"needle1MaxValue", needle1MaxValue);
146 settings->setValue(
"needle2MinValue", needle2MinValue);
147 settings->setValue(
"needle2MaxValue", needle2MaxValue);
148 settings->setValue(
"needle3MinValue", needle3MinValue);
149 settings->setValue(
"needle3MaxValue", needle3MaxValue);
151 settings->setValue(
"needle1DataObject", needle1DataObject);
152 settings->setValue(
"needle1ObjectField", needle1ObjectField);
153 settings->setValue(
"needle2DataObject", needle2DataObject);
154 settings->setValue(
"needle2ObjectField", needle2ObjectField);
155 settings->setValue(
"needle3DataObject", needle3DataObject);
156 settings->setValue(
"needle3ObjectField", needle3ObjectField);
158 settings->setValue(
"needle1Factor", needle1Factor);
159 settings->setValue(
"needle2Factor", needle2Factor);
160 settings->setValue(
"needle3Factor", needle3Factor);
162 settings->setValue(
"needle1Move", needle1Move);
163 settings->setValue(
"needle2Move", needle2Move);
164 settings->setValue(
"needle3Move", needle3Move);
166 settings->setValue(
"font", font);
168 settings->setValue(
"beSmooth", beSmooth);
DialGadgetConfiguration(QString classId, QSettings *qSettings=nullptr, QObject *parent=nullptr)
void setN2Max(double val)
void setN3Move(QString move)
void setDialBackgroundID(QString elementID)
void setFont(QString text)
void setDialForegroundID(QString elementID)
void setDialNeedleID3(QString elementID)
void setN2DataObject(QString text)
void setN3Factor(double val)
void setN3DataObject(QString text)
void setDialNeedleID2(QString elementID)
void setN1Factor(double val)
void setN1Max(double val)
void setN2Factor(double val)
static QString RemoveDataPath(QString path)
void setN2Move(QString move)
void setN1Min(double val)
void setN2ObjField(QString text)
void setDialNeedleID1(QString elementID)
void setN3Min(double val)
virtual void saveConfig() const
void setN1Move(QString move)
IUAVGadgetConfiguration * clone()
void setN3ObjField(QString text)
void setN3Max(double val)
void setN1ObjField(QString text)
void setN1DataObject(QString text)
static QString InsertDataPath(QString path)
void setN2Min(double val)