7 #include "EngaugeAssert.h" 10 #include "SettingsForGraph.h" 17 const QString &defaultName)
const 21 QSettings settings (SETTINGS_ENGAUGE, SETTINGS_DIGITIZER);
22 settings.beginGroup (groupName);
24 QString curveName = settings.value (SETTINGS_CURVE_NAME,
25 defaultName).toString();
34 ENGAUGE_ASSERT (indexOneBased != 0);
36 QString groupNameWithPlaceholder = SETTINGS_GROUP_CURVE_GRAPH;
37 QString groupName = groupNameWithPlaceholder.replace (SETTINGS_GROUP_CURVE_GRAPH_PLACEHOLDER,
38 QString::number (indexOneBased));
45 const QString EMPTY_CURVE_NAME;
48 int indexOneBased = 1;
49 while (
defaultCurveName (indexOneBased + 1, EMPTY_CURVE_NAME) != EMPTY_CURVE_NAME) {
SettingsForGraph()
Single constructor.
int numberOfCurvesForImport() const
Return the number of curve names to be generated. Value is maximum of 1 and the number in the configu...
QString groupNameForNthCurve(int indexOneBased) const
Return the group name, that appears in the settings file/registry, for the specified curve index...
QString defaultCurveName(int indexOneBased, const QString &defaultName) const
Default graph name for the specified curve index.