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)
79 void stateChanged(PdCom::Subscription::State state);
83 emit parent->valueChanged();
86 void insertRow(
int position,
int count);
87 void deleteRow(
int position,
int count);
89 QString getRow(
int row,
const QLocale &locale)
const;
90 bool setRow(QString valueStr,
int row,
const QLocale &locale);
92 void ensureEditData();
Definition: TableModelImpl.h:72
double offset
Offset for values.
Definition: TableModelImpl.h:99
bool dataPresent
Valid data have been received.
Definition: TableModelImpl.h:100
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
bool enabled
Column enabled.
Definition: TableModelImpl.h:102
QColor disabledColor
Definition: TableModelImpl.h:113
int highlightRow
Index of the row to highlight, or -1.
Definition: TableModelImpl.h:104
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
std::unique_ptr< Subscription > subscription
Definition: TableModelImpl.h:116
QColor highlightColor
Definition: TableModelImpl.h:112
QString header
Table column header.
Definition: TableModelImpl.h:96
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
QVector< TableColumn * > ColumnVector
Column vector type.
Definition: TableModelImpl.h:56
QtPdCom::IntVariable visibleRowCount
Definition: TableModelImpl.h:64
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