Text display widget.
More...
#include <Text.h>
|
PD_PRIVATE void | newValues (std::chrono::nanoseconds) override |
| This virtual method is called by the ProcessVariable, if its value changes. More...
|
|
Text display widget.
- Todo:
- Default text property.
◆ Text()
Text::Text |
( |
QWidget * |
parent = 0 | ) |
|
Constructor.
- Parameters
-
References Impl.
◆ ~Text()
◆ addCondition() [1/2]
TextCondition * Text::addCondition |
( |
PdCom::Variable |
pv, |
|
|
const QString & |
text = QString() , |
|
|
bool |
invert = false |
|
) |
| |
◆ addCondition() [2/2]
TextCondition * Text::addCondition |
( |
PdCom::Process * |
process, |
|
|
const QString & |
path, |
|
|
const QString & |
text = QString() , |
|
|
bool |
invert = false |
|
) |
| |
◆ clearConditions()
void Text::clearConditions |
( |
| ) |
|
◆ clearData()
◆ conditionChanged
void Text::conditionChanged |
( |
| ) |
|
|
privateslot |
◆ conditionTimeout
void Text::conditionTimeout |
( |
| ) |
|
|
privateslot |
◆ event()
bool Text::event |
( |
QEvent * |
event | ) |
|
|
overrideprotected |
◆ getAlignment()
Qt::Alignment Text::getAlignment |
( |
| ) |
const |
◆ getConditionActive()
bool Text::getConditionActive |
( |
| ) |
const |
◆ getPrefix()
QString Text::getPrefix |
( |
| ) |
const |
◆ getSuffix()
QString Text::getSuffix |
( |
| ) |
const |
◆ getValue()
int Text::getValue |
( |
| ) |
const |
◆ newValues()
void Text::newValues |
( |
std::chrono::nanoseconds |
| ) |
|
|
overrideprivate |
This virtual method is called by the ProcessVariable, if its value changes.
References impl, and setValue().
◆ paintEvent()
void Text::paintEvent |
( |
QPaintEvent * |
event | ) |
|
|
overrideprotected |
Paint function.
- Parameters
-
References event(), and impl.
◆ resetAlignment()
void Text::resetAlignment |
( |
| ) |
|
◆ resetPrefix()
void Text::resetPrefix |
( |
| ) |
|
◆ resetSuffix()
void Text::resetSuffix |
( |
| ) |
|
◆ setAlignment()
void Text::setAlignment |
( |
Qt::Alignment |
a | ) |
|
◆ setHash()
void Text::setHash |
( |
const Hash * |
h | ) |
|
Sets the hash to use.
- Parameters
-
References impl.
◆ setPrefix()
void Text::setPrefix |
( |
const QString & |
p | ) |
|
◆ setSuffix()
void Text::setSuffix |
( |
const QString & |
s | ) |
|
◆ setValue()
void Text::setValue |
( |
int |
v | ) |
|
◆ updateValueText()
void Text::updateValueText |
( |
| ) |
|
◆ TextCondition
◆ Impl
◆ impl
std::unique_ptr<Impl> Pd::Text::impl |
|
private |
Referenced by addCondition(), clearConditions(), clearData(), conditionChanged(), conditionTimeout(), event(), getAlignment(), getConditionActive(), getPrefix(), getSuffix(), getValue(), newValues(), paintEvent(), setAlignment(), setHash(), setPrefix(), setSuffix(), setValue(), and updateValueText().
◆ alignment
Qt::Alignment Pd::Text::alignment |
|
readwrite |
◆ conditionActive
bool Pd::Text::conditionActive |
|
read |
◆ prefix
◆ suffix
The documentation for this class was generated from the following files: