36 : IUAVGadgetConfiguration(classId, parent)
38 , sourceDataObject(
"Unknown")
39 , sourceObjectField(
"Unknown")
52 if (qSettings !=
nullptr) {
53 QString dFile = qSettings->value(
"dFile").toString();
55 sourceDataObject = qSettings->value(
"sourceDataObject").toString();
56 sourceObjectField = qSettings->value(
"sourceObjectField").toString();
57 minValue = qSettings->value(
"minValue").toDouble();
58 maxValue = qSettings->value(
"maxValue").toDouble();
59 redMin = qSettings->value(
"redMin").toDouble();
60 redMax = qSettings->value(
"redMax").toDouble();
61 yellowMin = qSettings->value(
"yellowMin").toDouble();
62 yellowMax = qSettings->value(
"yellowMax").toDouble();
63 greenMin = qSettings->value(
"greenMin").toDouble();
64 greenMax = qSettings->value(
"greenMax").toDouble();
65 font = qSettings->value(
"font").toString();
66 decimalPlaces = qSettings->value(
"decimalPlaces").toInt();
67 factor = qSettings->value(
"factor").toDouble();
78 m->dialFile = dialFile;
79 m->sourceDataObject = sourceDataObject;
80 m->sourceObjectField = sourceObjectField;
81 m->minValue = minValue;
82 m->maxValue = maxValue;
85 m->yellowMin = yellowMin;
86 m->yellowMax = yellowMax;
87 m->greenMin = greenMin;
88 m->greenMax = greenMax;
90 m->decimalPlaces = decimalPlaces;
103 qSettings->setValue(
"dFile", dFile);
104 qSettings->setValue(
"sourceDataObject", sourceDataObject);
105 qSettings->setValue(
"sourceObjectField", sourceObjectField);
106 qSettings->setValue(
"minValue", minValue);
107 qSettings->setValue(
"maxValue", maxValue);
108 qSettings->setValue(
"redMin", redMin);
109 qSettings->setValue(
"redMax", redMax);
110 qSettings->setValue(
"yellowMin", yellowMin);
111 qSettings->setValue(
"yellowMax", yellowMax);
112 qSettings->setValue(
"greenMin", greenMin);
113 qSettings->setValue(
"greenMax", greenMax);
114 qSettings->setValue(
"font", font);
115 qSettings->setValue(
"decimalPlaces", decimalPlaces);
116 qSettings->setValue(
"factor", factor);
IUAVGadgetConfiguration * clone()
static QString RemoveDataPath(QString path)
virtual void saveConfig() const
LineardialGadgetConfiguration(QString classId, QSettings *qSettings=nullptr, QObject *parent=nullptr)
static QString InsertDataPath(QString path)