56 QVariant data(
const QModelIndex& index,
int role)
const;
57 bool setData(
const QModelIndex& index,
const QVariant& value,
int role = Qt::EditRole);
59 QModelIndex index(
int row,
int column,
const QModelIndex& parent = QModelIndex())
const;
60 QModelIndex parent(
const QModelIndex& index)
const;
61 int rowCount(
const QModelIndex& parent = QModelIndex())
const;
62 int columnCount(
const QModelIndex& parent = QModelIndex())
const;
63 Qt::ItemFlags flags(
const QModelIndex& index)
const;
65 QVariant headerData(
int section, Qt::Orientation orientation,
int role = Qt::DisplayRole)
const;
67 void setHeaderLabels(Qt::Orientation orientation,
const QStringList& labels);
68 inline QStringList getHorizontalHeaderLabels()
const
70 return m_horizontalHeader;
72 inline QStringList getVerticalHeaderLabels()
const
74 return m_verticalHeader;
77 void setDataObject(QSharedPointer<ito::DataObject> dataObj);
78 inline QSharedPointer<ito::DataObject> getDataObject()
const
80 return m_sharedDataObj;
83 inline int getType()
const
85 return m_sharedDataObj.data() ? m_sharedDataObj->getType() :
ito::tUInt8;
88 void setReadOnly(
bool value);
89 inline bool getReadOnly()
const
94 void setDefaultGrid(
int rows,
int cols);
95 inline int getDefaultRows()
const
99 inline int getDefaultCols()
const
101 return m_defaultCols;
104 void setDecimals(
const int decimals);
105 inline int getDecimals()
const
110 void setSuffixes(
const QStringList& suffixes);
111 inline QStringList getSuffixes()
const
116 void setAlignment(
const Qt::Alignment& alignment);
117 inline Qt::Alignment getAlignment()
const
122 void setNumberFormat(
const char& format);
123 inline char getNumberFormat()
const
125 return m_numberFormat;
128 void setHeatmapType(
int type);
133 return m_heatmapInterval;
136 static int displayRoleWithoutSuffix;
137 static int preciseDisplayRoleWithoutSuffix;
138 static int longlongDoubleOrStringRoleWithoutSuffix;
141 bool setValue(
const int& row,
const int& column,
const QVariant& value);
143 QString getDisplayNumber(
const unsigned int& number,
const int column)
const;
144 QString getDisplayNumber(
const int& number,
const int column)
const;
145 QString getDisplayNumber(
const ito::float64& number,
const int column,
int decimals = -1)
const;
146 QString getDisplayNumber(
const ito::float32& number,
const int column,
int decimals = -1)
const;
147 QString getDisplayNumber(
148 const ito::complex64& number,
const int column,
int decimals = -1)
const;
149 QString getDisplayNumber(
150 const ito::complex128& number,
const int column,
int decimals = -1)
const;
151 QString getDisplayNumber(
152 const ito::DateTime& number,
const int column,
bool longDate)
const;
153 QString getDisplayNumber(
154 const ito::TimeDelta& number,
const int column,
bool longDate)
const;
156 QSharedPointer<ito::DataObject> m_sharedDataObj;
159 QStringList m_verticalHeader;
160 QStringList m_horizontalHeader;
165 QStringList m_suffixes;
166 Qt::Alignment m_alignment;
169 bool m_enableHeatmap;
170 QColor m_colorStopLow;
171 QColor m_colorStopMiddle;
172 QColor m_colorStopHigh;