Engauge Digitizer  2
SettingsForGraph.h
1 /******************************************************************************************************
2  * (C) 2014 markummitchell@github.com. This file is part of Engauge Digitizer, which is released *
3  * under GNU General Public License version 2 (GPLv2) or (at your option) any later version. See file *
4  * LICENSE or go to gnu.org/licenses for details. Distribution requires prior written permission. *
5  ******************************************************************************************************/
6 
7 #ifndef SETTINGS_FOR_GRAPH_H
8 #define SETTINGS_FOR_GRAPH_H
9 
10 #include <QString>
11 
14 {
15  public:
18 
20  QString defaultCurveName (int indexOneBased,
21  const QString &defaultName) const;
22 
24  QString groupNameForNthCurve (int indexOneBased) const;
25 
27  int numberOfCurvesForImport() const;
28 };
29 
30 #endif // SETTINGS_FOR_GRAPH_H
Manage storage and retrieval of the settings for the curves.
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.