23#ifndef QTPDCOM_TABLEMODEL_IMPL_H
24#define QTPDCOM_TABLEMODEL_IMPL_H
28#include <QAbstractTableModel>
32#define DEFAULT_DECIMALS 15
33#define DEFAULT_HIGHLIGHT_COLOR QColor(152, 183, 255)
34#define DEFAULT_DISABLED_COLOR QColor(220, 220, 220)
89 QString
getRow(
int row,
const QLocale &locale)
const;
90 bool setRow(QString valueStr,
int row,
const QLocale &locale);
Definition TableModelImpl.h:72
double offset
Offset for values.
Definition TableModelImpl.h:99
bool dataPresent
Valid data have been received.
Definition TableModelImpl.h:100
QString getRow(int row, const QLocale &locale) const
Definition TableColumn.cpp:485
quint32 decimals
Number of decimal digits.
Definition TableModelImpl.h:105
TableColumn * parent
Parent object.
Definition TableModelImpl.h:95
double * editData
Temporary editing data.
Definition TableModelImpl.h:101
void stateChanged(PdCom::Subscription::State state)
Definition TableColumn.cpp:127
bool enabled
Column enabled.
Definition TableModelImpl.h:102
QColor disabledColor
Definition TableModelImpl.h:113
void deleteRow(int position, int count)
Definition TableColumn.cpp:762
int highlightRow
Index of the row to highlight, or -1.
Definition TableModelImpl.h:104
bool setRow(QString valueStr, int row, const QLocale &locale)
Definition TableColumn.cpp:503
Impl(TableColumn *parent, const QString &header)
Definition TableColumn.cpp:100
double scale
Scale factor for values.
Definition TableModelImpl.h:98
double lowerLimit
Lower limit for value of column (this is a hint for the Input Method to limit the value).
Definition TableModelImpl.h:106
QHash< unsigned int, bool > enabledRows
Enabled table rows.
Definition TableModelImpl.h:103
void newValues(std::chrono::nanoseconds)
Definition TableModelImpl.h:80
double upperLimit
Upper limit for value of column (this is a hint for the Input Method to limit the value).
Definition TableModelImpl.h:109
void ensureEditData()
Definition TableColumn.cpp:715
std::unique_ptr< Subscription > subscription
Definition TableModelImpl.h:116
QColor highlightColor
Definition TableModelImpl.h:112
QString header
Table column header.
Definition TableModelImpl.h:96
~Impl()
Definition TableColumn.cpp:118
void insertRow(int position, int count)
Definition TableColumn.cpp:739
Table Column.
Definition TableColumn.h:44
Table model.
Definition TableModelImpl.h:45
ColumnVector columnVector
Vector of table columns.
Definition TableModelImpl.h:58
unsigned int rowCapacity
Definition TableModelImpl.h:55
QtPdCom::IntVariable valueHighlightRow
Definition TableModelImpl.h:63
TableModel *const parent
Definition TableModelImpl.h:52
unsigned int visibleRows
Definition TableModelImpl.h:54
QtPdCom::IntVariable visibleRowCount
Definition TableModelImpl.h:64
QVector< TableColumn * > ColumnVector
Column vector type.
Definition TableModelImpl.h:56
Impl(TableModel *parent)
Definition TableModelImpl.h:47
void updateRows()
Calculates the number of table rows.
Definition TableModel.cpp:620
void ensureEditing()
Definition TableModel.cpp:654
unsigned int rows
Definition TableModelImpl.h:53
Table model.
Definition TableModel.h:43
Definition BroadcastModel.h:32