Engauge Digitizer 2
|
Model for DlgSettingsCurveList and CmdSettingsCurveList. More...
#include <CurveNameList.h>
Public Member Functions | |
CurveNameList () | |
Default constructor. | |
virtual int | columnCount (const QModelIndex &parent) const |
One column. | |
bool | containsCurveNameCurrent (const QString &curveName) const |
Return true if specified curve name is already in the list. | |
QString | currentCurvesAsString () const |
For debugging we dump the curve names. | |
QString | currentCurveToOriginalCurve (const QString ¤tCurve) const |
Return the original curve for the specified current curve. | |
unsigned int | currentCurveToPointCount (const QString ¤tCurve) const |
Return the point count for the specified current curve. | |
virtual Qt::ItemFlags | flags (const QModelIndex &index) const |
Override normal flags with additional editing flags. | |
void | insertRow (int row, const QString &curveCurrent, const QString &curveOriginal, unsigned int pointCount) |
Create a new entry at the specified row. | |
virtual QStandardItem * | item (int row, int column=0) const |
Retrieve data from model. | |
unsigned int | numPointsForSelectedCurves (const QList< unsigned int > &rowsSelected) const |
Return the number of points associated with the selected curves, as specified by their row numbers. | |
virtual bool | removeRows (int row, int count, const QModelIndex &parent) |
Remove one row. | |
void | reset () |
Clear all information. | |
virtual int | rowCount (const QModelIndex &parent=QModelIndex()) const |
One row per curve name. | |
virtual bool | setData (const QModelIndex &index, const QVariant &value, int role) |
Store data for one curve name. | |
virtual void | setItem (int row, int column, QStandardItem *item) |
Store one curve name data. | |
virtual Qt::DropActions | supportedDropActions () const |
Allow dragging for reordering. |
Model for DlgSettingsCurveList and CmdSettingsCurveList.
This is displayed as a QListView, with visible first column showing current curve name. Second column is hidden with curve name at the start of editing, or empty if none.
Definition at line 27 of file CurveNameList.h.
CurveNameList::CurveNameList | ( | ) |
Default constructor.
Definition at line 18 of file CurveNameList.cpp.
|
virtual |
bool CurveNameList::containsCurveNameCurrent | ( | const QString & | curveName | ) | const |
Return true if specified curve name is already in the list.
Definition at line 28 of file CurveNameList.cpp.
QString CurveNameList::currentCurvesAsString | ( | ) | const |
For debugging we dump the curve names.
Definition at line 44 of file CurveNameList.cpp.
QString CurveNameList::currentCurveToOriginalCurve | ( | const QString & | currentCurve | ) | const |
Return the original curve for the specified current curve.
Definition at line 72 of file CurveNameList.cpp.
unsigned int CurveNameList::currentCurveToPointCount | ( | const QString & | currentCurve | ) | const |
Return the point count for the specified current curve.
Definition at line 77 of file CurveNameList.cpp.
|
virtual |
Override normal flags with additional editing flags.
Definition at line 122 of file CurveNameList.cpp.
void CurveNameList::insertRow | ( | int | row, |
const QString & | curveCurrent, | ||
const QString & | curveOriginal, | ||
unsigned int | pointCount ) |
Create a new entry at the specified row.
Definition at line 143 of file CurveNameList.cpp.
|
virtual |
Retrieve data from model.
Definition at line 168 of file CurveNameList.cpp.
unsigned int CurveNameList::numPointsForSelectedCurves | ( | const QList< unsigned int > & | rowsSelected | ) | const |
Return the number of points associated with the selected curves, as specified by their row numbers.
Definition at line 178 of file CurveNameList.cpp.
|
virtual |
Remove one row.
Definition at line 199 of file CurveNameList.cpp.
void CurveNameList::reset | ( | ) |
Clear all information.
Definition at line 240 of file CurveNameList.cpp.
|
virtual |
One row per curve name.
Definition at line 249 of file CurveNameList.cpp.
|
virtual |
Store data for one curve name.
Definition at line 259 of file CurveNameList.cpp.
|
virtual |
Store one curve name data.
Definition at line 316 of file CurveNameList.cpp.
|
virtual |
Allow dragging for reordering.
Definition at line 338 of file CurveNameList.cpp.