QtPdCom  1.5.2
QtPdCom::QtPdCom::TableColumn::Impl Class Reference

#include <TableModelImpl.h>

Collaboration diagram for QtPdCom::QtPdCom::TableColumn::Impl:

Public Member Functions

 Impl (TableColumn *parent, const QString &header)
 ~Impl ()
void stateChanged (PdCom::Subscription::State state)
void newValues (std::chrono::nanoseconds)
void insertRow (int position, int count)
void deleteRow (int position, int count)
QString getRow (int row, const QLocale &locale) const
bool setRow (QString valueStr, int row, const QLocale &locale)
void ensureEditData ()

Private Attributes

TableColumnparent
 Parent object.
QString header
 Table column header.
double scale
 Scale factor for values.
double offset
 Offset for values.
bool dataPresent
 Valid data have been received.
double * editData
 Temporary editing data.
bool enabled
 Column enabled.
QHash< unsigned int, bool > enabledRows
 Enabled table rows.
int highlightRow
 Index of the row to highlight, or -1.
quint32 decimals
 Number of decimal digits.
double lowerLimit
 Lower limit for value of column (this is a hint for the Input Method to limit the value).
double upperLimit
 Upper limit for value of column (this is a hint for the Input Method to limit the value).
QColor highlightColor
QColor disabledColor
std::unique_ptr< Subscription > subscription

Friends

class TableColumn

Constructor & Destructor Documentation

◆ Impl()

◆ ~Impl()

TableColumn::Impl::~Impl ( )

References editData.

Member Function Documentation

◆ deleteRow()

void TableColumn::Impl::deleteRow ( int position,
int count )

◆ ensureEditData()

void TableColumn::Impl::ensureEditData ( )

References dataPresent, editData, offset, scale, and subscription.

Referenced by deleteRow(), insertRow(), and setRow().

◆ getRow()

QString TableColumn::Impl::getRow ( int row,
const QLocale & locale ) const

◆ insertRow()

void TableColumn::Impl::insertRow ( int position,
int count )

◆ newValues()

void QtPdCom::QtPdCom::TableColumn::Impl::newValues ( std::chrono::nanoseconds )
inline

References dataPresent, and parent.

◆ setRow()

bool TableColumn::Impl::setRow ( QString valueStr,
int row,
const QLocale & locale )

◆ stateChanged()

void TableColumn::Impl::stateChanged ( PdCom::Subscription::State state)

References dataPresent, editData, and parent.

◆ TableColumn

friend class TableColumn
friend

References header, parent, and TableColumn.

Referenced by Impl(), and TableColumn.

Member Data Documentation

◆ dataPresent

bool QtPdCom::QtPdCom::TableColumn::Impl::dataPresent
private

Valid data have been received.

Referenced by deleteRow(), ensureEditData(), getRow(), Impl(), insertRow(), newValues(), setRow(), and stateChanged().

◆ decimals

quint32 QtPdCom::QtPdCom::TableColumn::Impl::decimals
private

Number of decimal digits.

Referenced by getRow(), and Impl().

◆ disabledColor

QColor QtPdCom::QtPdCom::TableColumn::Impl::disabledColor
private

Referenced by Impl().

◆ editData

double* QtPdCom::QtPdCom::TableColumn::Impl::editData
private

Temporary editing data.

Referenced by deleteRow(), ensureEditData(), Impl(), insertRow(), setRow(), stateChanged(), and ~Impl().

◆ enabled

bool QtPdCom::QtPdCom::TableColumn::Impl::enabled
private

Column enabled.

Referenced by Impl().

◆ enabledRows

QHash<unsigned int, bool> QtPdCom::QtPdCom::TableColumn::Impl::enabledRows
private

Enabled table rows.

◆ header

QString QtPdCom::QtPdCom::TableColumn::Impl::header
private

Table column header.

Referenced by Impl(), and TableColumn.

◆ highlightColor

QColor QtPdCom::QtPdCom::TableColumn::Impl::highlightColor
private

Referenced by Impl().

◆ highlightRow

int QtPdCom::QtPdCom::TableColumn::Impl::highlightRow
private

Index of the row to highlight, or -1.

Referenced by Impl().

◆ lowerLimit

double QtPdCom::QtPdCom::TableColumn::Impl::lowerLimit
private

Lower limit for value of column (this is a hint for the Input Method to limit the value).

Referenced by Impl().

◆ offset

double QtPdCom::QtPdCom::TableColumn::Impl::offset
private

Offset for values.

Referenced by ensureEditData(), getRow(), and Impl().

◆ parent

TableColumn* QtPdCom::QtPdCom::TableColumn::Impl::parent
private

Parent object.

Referenced by Impl(), newValues(), stateChanged(), and TableColumn.

◆ scale

double QtPdCom::QtPdCom::TableColumn::Impl::scale
private

Scale factor for values.

Referenced by ensureEditData(), getRow(), and Impl().

◆ subscription

std::unique_ptr<Subscription> QtPdCom::QtPdCom::TableColumn::Impl::subscription
private

◆ upperLimit

double QtPdCom::QtPdCom::TableColumn::Impl::upperLimit
private

Upper limit for value of column (this is a hint for the Input Method to limit the value).

Referenced by Impl().


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