|
Engauge Digitizer 2
|
Utility class for converting the QVariant in CurveNameList to/from the curve names as QStrings, for use by the CurveNameList model class. More...
#include <CurveNameListEntry.h>
Public Member Functions | |
| CurveNameListEntry () | |
| Constructor for empty entry. | |
| CurveNameListEntry (const QString &curveNameCurrent, const QString &curveNameOriginal, int numPoints) | |
| Constructor for converting to QVariant. | |
| CurveNameListEntry (const QString &fromText) | |
| Constructor for converting from QVariant. | |
| QString | curveNameCurrent () const |
| Curve name displayed in DlgSettingsCurveAddRemove. | |
| QString | curveNameOriginal () const |
| Original curve name in document. Empty if there was no original curve. | |
| int | numPoints () const |
| Number of points in curve. | |
| void | setCurveNameCurrent (const QString &curveNameCurrent) |
| Set method for current curve name. | |
| void | setCurveNameOriginal (const QString &curveNameOriginal) |
| Set method for original curve name. | |
| void | setNumPoints (int numPoints) |
| Set method for point count. | |
| QString | toString () const |
| QString for creating QVariant. | |
Static Public Member Functions | |
| static int | COL_CURVE_NAME_CURRENT () |
| Get method for current curve name constant. | |
| static int | COL_CURVE_NAME_ORIGINAL () |
| Get method for original curve name constant. | |
| static int | COL_NUM_POINTS () |
| Get method for number of points constant. | |
Utility class for converting the QVariant in CurveNameList to/from the curve names as QStrings, for use by the CurveNameList model class.
Subclassing QVariant brings up difficult challenges, so the QString userType was chosen.
Each entry has the current curve name, original curve name and point count, separated by a delimiter.
Definition at line 19 of file CurveNameListEntry.h.
| CurveNameListEntry::CurveNameListEntry | ( | ) |
Constructor for empty entry.
Definition at line 16 of file CurveNameListEntry.cpp.
| CurveNameListEntry::CurveNameListEntry | ( | const QString & | curveNameCurrent, |
| const QString & | curveNameOriginal, | ||
| int | numPoints | ||
| ) |
Constructor for converting to QVariant.
Definition at line 23 of file CurveNameListEntry.cpp.
| CurveNameListEntry::CurveNameListEntry | ( | const QString & | fromText | ) |
Constructor for converting from QVariant.
Definition at line 32 of file CurveNameListEntry.cpp.
|
inlinestatic |
Get method for current curve name constant.
Definition at line 34 of file CurveNameListEntry.h.
|
inlinestatic |
Get method for original curve name constant.
Definition at line 37 of file CurveNameListEntry.h.
|
inlinestatic |
Get method for number of points constant.
Definition at line 40 of file CurveNameListEntry.h.
| QString CurveNameListEntry::curveNameCurrent | ( | ) | const |
Curve name displayed in DlgSettingsCurveAddRemove.
Definition at line 41 of file CurveNameListEntry.cpp.
| QString CurveNameListEntry::curveNameOriginal | ( | ) | const |
Original curve name in document. Empty if there was no original curve.
Definition at line 46 of file CurveNameListEntry.cpp.
| int CurveNameListEntry::numPoints | ( | ) | const |
Number of points in curve.
Definition at line 51 of file CurveNameListEntry.cpp.
| void CurveNameListEntry::setCurveNameCurrent | ( | const QString & | curveNameCurrent | ) |
Set method for current curve name.
Definition at line 56 of file CurveNameListEntry.cpp.
| void CurveNameListEntry::setCurveNameOriginal | ( | const QString & | curveNameOriginal | ) |
Set method for original curve name.
Definition at line 61 of file CurveNameListEntry.cpp.
| void CurveNameListEntry::setNumPoints | ( | int | numPoints | ) |
Set method for point count.
Definition at line 66 of file CurveNameListEntry.cpp.
| QString CurveNameListEntry::toString | ( | ) | const |
QString for creating QVariant.
Definition at line 71 of file CurveNameListEntry.cpp.