Table Column.
More...
#include <TableColumn.h>
|
| | TableColumn (const QString &=QString(), QObject *parent=nullptr) |
| | Constructor.
|
| |
| | ~TableColumn () |
| | Destructor.
|
| |
| void | setHeader (const QString &) |
| | Sets the column header.
|
| |
| const QString & | getHeader () const |
| |
| void | setVariable (PdCom::Variable, const Transmission &=QtPdCom::event_mode, double=1.0, double=0.0) |
| | Subscribes to a ProcessVariable.
|
| |
| void | setVariable (PdCom::Process *, const QString &, const Transmission &=QtPdCom::event_mode, double=1.0, double=0.0) |
| | Subscribes to a ProcessVariable.
|
| |
| void | clearVariable () |
| | Unsubscribe from a Variable.
|
| |
| void | clearData () |
| |
| quint32 | getDecimals () const |
| |
| void | setDecimals (quint32) |
| | Sets the number of #decimals.
|
| |
| unsigned int | getRows () const |
| | Get number of rows.
|
| |
| QVariant | data (unsigned int, int) const |
| | Get display text.
|
| |
| QVariant | headerData (int) const |
| | Get header data.
|
| |
| Qt::ItemFlags | flags (unsigned int) const |
| | Implements the Model interface.
|
| |
| bool | setData (unsigned int, const QString &, int) |
| | Set an edit value.
|
| |
| void | setEnabled (bool, int=-1) |
| | Set enabled for a column.
|
| |
| bool | isEditing () const |
| |
| bool | isEnabled () const |
| |
| void | commit () |
| | Write edited data to the process.
|
| |
| void | revert () |
| | Reverts all edited values.
|
| |
| void | setHighlightRow (int) |
| |
| void | setHighlightColor (QColor) |
| |
| void | setDisabledColor (QColor) |
| |
◆ TableColumn()
| TableColumn::TableColumn |
( |
const QString & |
header = QString(), |
|
|
QObject * |
parent = nullptr |
|
) |
| |
◆ ~TableColumn()
| TableColumn::~TableColumn |
( |
| ) |
|
◆ clearData()
| void TableColumn::clearData |
( |
| ) |
|
◆ clearVariable()
| void TableColumn::clearVariable |
( |
| ) |
|
◆ commit()
| void TableColumn::commit |
( |
| ) |
|
◆ data()
| QVariant TableColumn::data |
( |
unsigned int |
row, |
|
|
int |
role |
|
) |
| const |
◆ dimensionChanged
| void QtPdCom::TableColumn::dimensionChanged |
( |
| ) |
|
|
signal |
◆ flags()
| Qt::ItemFlags TableColumn::flags |
( |
unsigned int |
row | ) |
const |
Implements the Model interface.
References impl.
◆ getDecimals()
| quint32 QtPdCom::TableColumn::getDecimals |
( |
| ) |
const |
◆ getHeader()
| const QString & TableColumn::getHeader |
( |
| ) |
const |
◆ getRows()
| unsigned int TableColumn::getRows |
( |
| ) |
const |
◆ headerChanged
| void QtPdCom::TableColumn::headerChanged |
( |
| ) |
|
|
signal |
◆ headerData()
| QVariant TableColumn::headerData |
( |
int |
role | ) |
const |
Get header data.
References impl.
◆ isEditing()
| bool TableColumn::isEditing |
( |
| ) |
const |
◆ isEnabled()
| bool TableColumn::isEnabled |
( |
| ) |
const |
◆ revert()
| void TableColumn::revert |
( |
| ) |
|
◆ setData()
| bool TableColumn::setData |
( |
unsigned int |
row, |
|
|
const QString & |
valueString, |
|
|
int |
role |
|
) |
| |
◆ setDecimals()
| void TableColumn::setDecimals |
( |
quint32 |
value | ) |
|
◆ setDisabledColor()
| void TableColumn::setDisabledColor |
( |
QColor |
dc | ) |
|
◆ setEnabled()
| void TableColumn::setEnabled |
( |
bool |
value, |
|
|
int |
row = -1 |
|
) |
| |
◆ setHeader()
| void TableColumn::setHeader |
( |
const QString & |
h | ) |
|
◆ setHighlightColor()
| void TableColumn::setHighlightColor |
( |
QColor |
hc | ) |
|
◆ setHighlightRow()
| void TableColumn::setHighlightRow |
( |
int |
value | ) |
|
◆ setVariable() [1/2]
| void TableColumn::setVariable |
( |
PdCom::Process * |
process, |
|
|
const QString & |
path, |
|
|
const Transmission & |
transmission = QtPdCom::event_mode, |
|
|
double |
scale = 1.0, |
|
|
double |
offset = 0.0 |
|
) |
| |
◆ setVariable() [2/2]
◆ valueChanged
| void QtPdCom::TableColumn::valueChanged |
( |
| ) |
|
|
signal |
◆ Impl
◆ impl
| std::unique_ptr<Impl> QtPdCom::TableColumn::impl |
|
private |
Referenced by clearData(), clearVariable(), commit(), data(), flags(), getHeader(), getRows(), headerData(), isEditing(), isEnabled(), revert(), setData(), setDecimals(), setDisabledColor(), setEnabled(), setHeader(), setHighlightColor(), setHighlightRow(), and setVariable().
The documentation for this class was generated from the following files: