itom
Loading...
Searching...
No Matches
DataObjectModel Class Reference
Inheritance diagram for DataObjectModel:

Public Member Functions

QVariant data (const QModelIndex &index, int role) const
 
bool setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole)
 
QModelIndex index (int row, int column, const QModelIndex &parent=QModelIndex()) const
 
QModelIndex parent (const QModelIndex &index) const
 
int rowCount (const QModelIndex &parent=QModelIndex()) const
 
int columnCount (const QModelIndex &parent=QModelIndex()) const
 
Qt::ItemFlags flags (const QModelIndex &index) const
 
QVariant headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const
 
void setHeaderLabels (Qt::Orientation orientation, const QStringList &labels)
 
QStringList getHorizontalHeaderLabels () const
 
QStringList getVerticalHeaderLabels () const
 
void setDataObject (QSharedPointer< ito::DataObject > dataObj)
 
QSharedPointer< ito::DataObjectgetDataObject () const
 
int getType () const
 
void setReadOnly (bool value)
 
bool getReadOnly () const
 
void setDefaultGrid (int rows, int cols)
 
int getDefaultRows () const
 
int getDefaultCols () const
 
void setDecimals (const int decimals)
 
int getDecimals () const
 
void setSuffixes (const QStringList &suffixes)
 
QStringList getSuffixes () const
 
void setAlignment (const Qt::Alignment &alignment)
 
Qt::Alignment getAlignment () const
 
void setNumberFormat (const char &format)
 
char getNumberFormat () const
 
void setHeatmapType (int type)
 
void setHeatmapInterval (const ito::AutoInterval &interval)
 
ito::AutoInterval getHeatmapInterval () const
 

Static Public Attributes

static int displayRoleWithoutSuffix = Qt::UserRole + 1
 
static int preciseDisplayRoleWithoutSuffix = Qt::UserRole + 2
 
static int longlongDoubleOrStringRoleWithoutSuffix = Qt::UserRole + 3
 

Protected Member Functions

bool setValue (const int &row, const int &column, const QVariant &value)
 
QString getDisplayNumber (const unsigned int &number, const int column) const
 
QString getDisplayNumber (const int &number, const int column) const
 
QString getDisplayNumber (const ito::float64 &number, const int column, int decimals=-1) const
 
QString getDisplayNumber (const ito::float32 &number, const int column, int decimals=-1) const
 
QString getDisplayNumber (const ito::complex64 &number, const int column, int decimals=-1) const
 
QString getDisplayNumber (const ito::complex128 &number, const int column, int decimals=-1) const
 
QString getDisplayNumber (const ito::DateTime &number, const int column, bool longDate) const
 
QString getDisplayNumber (const ito::TimeDelta &number, const int column, bool longDate) const
 

Protected Attributes

QSharedPointer< ito::DataObjectm_sharedDataObj
 

Private Attributes

QStringList m_verticalHeader
 
QStringList m_horizontalHeader
 
int m_defaultRows
 
int m_defaultCols
 
bool m_readOnly
 
int m_decimals
 
QStringList m_suffixes
 
Qt::Alignment m_alignment
 
char m_numberFormat
 
ito::AutoInterval m_heatmapInterval
 
bool m_enableHeatmap
 
QColor m_colorStopLow
 
QColor m_colorStopMiddle
 
QColor m_colorStopHigh
 
QLocale m_locale
 
bool m_dummyData
 

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