Engauge Digitizer  2
Public Member Functions | List of all members
CurveNameList Class Reference

Model for DlgSettingsCurveAddRemove and CmdSettingsCurveAddRemove. More...

#include <CurveNameList.h>

Inheritance diagram for CurveNameList:

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 &currentCurve) const
 Return the original curve for the specified current curve.
 
unsigned int currentCurveToPointCount (const QString &currentCurve) 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.
 

Detailed Description

Model for DlgSettingsCurveAddRemove and CmdSettingsCurveAddRemove.

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.


The documentation for this class was generated from the following files: