00001 /****************************************************************************************************** 00002 * (C) 2014 markummitchell@github.com. This file is part of Engauge Digitizer, which is released * 00003 * under GNU General Public License version 2 (GPLv2) or (at your option) any later version. See file * 00004 * LICENSE or go to gnu.org/licenses for details. Distribution requires prior written permission. * 00005 ******************************************************************************************************/ 00006 00007 #ifndef CURVE_NAME_LIST_ENTRY_H 00008 #define CURVE_NAME_LIST_ENTRY_H 00009 00010 #include <QString> 00011 00012 class QXmlStreamWriter; 00013 00019 class CurveNameListEntry 00020 { 00021 public: 00023 CurveNameListEntry (); 00024 00026 CurveNameListEntry (const QString &curveNameCurrent, 00027 const QString &curveNameOriginal, 00028 int numPoints); 00029 00031 CurveNameListEntry (const QString &fromText); 00032 00034 static int COL_CURVE_NAME_CURRENT () { return 0; } 00035 00037 static int COL_CURVE_NAME_ORIGINAL () { return 1; } 00038 00040 static int COL_NUM_POINTS () { return 2; } 00041 00043 QString curveNameCurrent () const; 00044 00046 QString curveNameOriginal () const; 00047 00049 bool entryHasNotBeenPopulated () const; 00050 00052 int numPoints () const; 00053 00055 void setCurveNameCurrent (const QString &curveNameCurrent); 00056 00058 void setCurveNameOriginal (const QString &curveNameOriginal); 00059 00061 void setNumPoints (int numPoints); 00062 00064 QString toString () const; 00065 00066 private: 00067 00068 QString m_curveNameCurrent; 00069 QString m_curveNameOriginal; 00070 int m_numPoints; 00071 }; 00072 00073 #endif // CURVE_NAME_LIST_ENTRY_H