QtPdWidgets  2.3.1
Public Member Functions | Public Attributes | List of all members
Pd::Text::Impl Struct Reference
Collaboration diagram for Pd::Text::Impl:
Collaboration graph
[legend]

Public Member Functions

 Impl (Text *parent)
 
void updateValueText ()
 Looks up the text to display and calls updateDisplayText(), if necessary. More...
 
void updateDisplayText ()
 Updates the widget, if the text changed. More...
 
void findCondition ()
 
void retranslate ()
 Retranslate the widget. More...
 

Public Attributes

Text *const parent
 
Qt::Alignment alignment
 Text alignment. More...
 
QString prefix
 Prefix to display before the displayValue text. More...
 
QString suffix
 Suffix to display after the displayValue text. More...
 
int processValue
 The current value from the process. More...
 
bool dataPresent
 There is a process value to display. More...
 
const Hashhash
 The hash to use. More...
 
Value displayValue
 Value object to display. More...
 
QString displayText
 Display text. More...
 
QColor displayColor
 Display color. More...
 
QFont displayFont
 Display font. More...
 
QList< TextCondition * > conditions
 
int conditionIndex
 
QTimer conditionTimer
 
bool conditionActive
 

Constructor & Destructor Documentation

◆ Impl()

Pd::Text::Impl::Impl ( Text parent)
inline

Member Function Documentation

◆ findCondition()

void Pd::Text::Impl::findCondition ( )
inline

◆ retranslate()

void Pd::Text::Impl::retranslate ( )
inline

Retranslate the widget.

References Pd::Text::Impl::parent.

◆ updateDisplayText()

void Pd::Text::Impl::updateDisplayText ( )
inline

◆ updateValueText()

void Pd::Text::Impl::updateValueText ( )
inline

Looks up the text to display and calls updateDisplayText(), if necessary.

This method is public, because it has to be called on language changes.

References Pd::Text::Impl::dataPresent, Pd::Text::Impl::displayValue, Pd::Text::Impl::hash, Pd::Text::Impl::prefix, Pd::Text::Impl::processValue, Pd::Text::Impl::suffix, Pd::Text::Value::text, and Pd::Text::Impl::updateDisplayText().

Member Data Documentation

◆ alignment

Qt::Alignment Pd::Text::Impl::alignment

Text alignment.

◆ conditionActive

bool Pd::Text::Impl::conditionActive

◆ conditionIndex

int Pd::Text::Impl::conditionIndex

◆ conditions

QList<TextCondition *> Pd::Text::Impl::conditions

◆ conditionTimer

QTimer Pd::Text::Impl::conditionTimer

◆ dataPresent

bool Pd::Text::Impl::dataPresent

There is a process value to display.

Referenced by Pd::Text::Impl::updateValueText().

◆ displayColor

QColor Pd::Text::Impl::displayColor

Display color.

Referenced by Pd::Text::Impl::updateDisplayText().

◆ displayFont

QFont Pd::Text::Impl::displayFont

Display font.

Referenced by Pd::Text::Impl::updateDisplayText().

◆ displayText

QString Pd::Text::Impl::displayText

Display text.

Referenced by Pd::Text::Impl::updateDisplayText().

◆ displayValue

Value Pd::Text::Impl::displayValue

Value object to display.

Referenced by Pd::Text::Impl::updateDisplayText(), and Pd::Text::Impl::updateValueText().

◆ hash

const Hash* Pd::Text::Impl::hash

The hash to use.

Referenced by Pd::Text::Impl::updateValueText().

◆ parent

Text* const Pd::Text::Impl::parent

◆ prefix

QString Pd::Text::Impl::prefix

Prefix to display before the displayValue text.

Referenced by Pd::Text::Impl::updateValueText().

◆ processValue

int Pd::Text::Impl::processValue

The current value from the process.

Referenced by Pd::Text::Impl::updateValueText().

◆ suffix

QString Pd::Text::Impl::suffix

Suffix to display after the displayValue text.

Referenced by Pd::Text::Impl::updateValueText().


The documentation for this struct was generated from the following file: