|
QtPdWidgets
2.3.4
|
Base functionality for digital displays. More...
#include <Digital.h>


Classes | |
| struct | Impl |
Public Types | |
| enum | TimeDisplay { None, Seconds, Minutes, Hours } |
Public Member Functions | |
| Digital (QWidget *parent=0) | |
| Constructor. More... | |
| virtual | ~Digital () |
| Destructor. More... | |
| void | clearData () |
| double | getValue () const |
| Qt::Alignment | getAlignment () const |
| void | setAlignment (Qt::Alignment) |
| Sets the text alignment. More... | |
| void | resetAlignment () |
| Resets the number of decimals. More... | |
| quint32 | getDecimals () const |
| void | setDecimals (quint32) |
| Sets the number of decimals. More... | |
| void | resetDecimals () |
| Resets the number of decimals. More... | |
| QString | getSuffix () const |
| void | setSuffix (const QString &) |
| Sets the suffix to display after the value. More... | |
| void | resetSuffix () |
| Resets the suffix to display after the value. More... | |
| TimeDisplay | getTimeDisplay () const |
| void | setTimeDisplay (TimeDisplay) |
| Sets the timeDisplay method. More... | |
| void | resetTimeDisplay () |
| Resets the timeDisplay method. More... | |
| int | getBase () const |
| void | setBase (int) |
| Sets the number base. More... | |
| void | resetBase () |
| Resets the number base. More... | |
| QString | getValueString () const |
| QSize | sizeHint () const override |
| Gives a hint aboute the optimal size. More... | |
Protected Member Functions | |
| bool | event (QEvent *) override |
| Event function. More... | |
| void | paintEvent (QPaintEvent *) override |
| Paint function. More... | |
Properties | |
| Qt::Alignment | alignment |
| quint32 | decimals |
| QString | suffix |
| TimeDisplay | timeDisplay |
| int | base |
Private Slots | |
| PD_PRIVATE void | redrawEvent () |
| Redraw event slot, that is called by the redraw timer. More... | |
Private Member Functions | |
| PD_PRIVATE void | newValues (std::chrono::nanoseconds) override |
| This virtual method is called by the ProcessVariable, if its value changes. More... | |
Private Attributes | |
| struct PD_PRIVATE | Impl |
| std::unique_ptr< Impl > | impl |
Base functionality for digital displays.
| Digital::Digital | ( | QWidget * | parent = 0 | ) |
Constructor.
| parent | Parent widget. |
References Pd::Widget::getTimer(), impl, and redrawEvent().
|
virtual |
Destructor.
| void Digital::clearData | ( | ) |
References impl.
|
overrideprotected |
Event function.
| event | Event flags. |
References impl.
Referenced by Pd::TouchEdit::event(), and paintEvent().
| quint32 Digital::getDecimals | ( | ) | const |
References impl.
Referenced by Pd::TouchEdit::Impl::openDialog().
| QString Digital::getSuffix | ( | ) | const |
| Digital::TimeDisplay Digital::getTimeDisplay | ( | ) | const |
References impl.
| double Digital::getValue | ( | ) | const |
| QString Pd::Digital::getValueString | ( | ) | const |
|
overrideprivate |
This virtual method is called by the ProcessVariable, if its value changes.
References impl.
|
overrideprotected |
|
privateslot |
| void Digital::resetAlignment | ( | ) |
Resets the number of decimals.
References DEFAULT_ALIGNMENT, and setAlignment().
| void Digital::resetBase | ( | ) |
Resets the number base.
References DEFAULT_BASE, and setBase().
| void Digital::resetDecimals | ( | ) |
Resets the number of decimals.
References DEFAULT_DECIMALS, and setDecimals().
| void Digital::resetSuffix | ( | ) |
Resets the suffix to display after the value.
References DEFAULT_SUFFIX, and setSuffix().
| void Digital::resetTimeDisplay | ( | ) |
Resets the timeDisplay method.
References DEFAULT_TIME_DISPLAY, and setTimeDisplay().
| void Digital::setAlignment | ( | Qt::Alignment | a | ) |
| void Digital::setBase | ( | int | base | ) |
| void Digital::setDecimals | ( | quint32 | decimals | ) |
| void Digital::setSuffix | ( | const QString & | suffix | ) |
Sets the suffix to display after the value.
Referenced by resetSuffix().
| void Digital::setTimeDisplay | ( | TimeDisplay | timeDisplay | ) |
|
override |
Gives a hint aboute the optimal size.
|
private |
|
private |
Referenced by clearData(), Digital(), event(), getAlignment(), getBase(), getDecimals(), getSuffix(), getTimeDisplay(), getValue(), newValues(), paintEvent(), redrawEvent(), setAlignment(), setBase(), setDecimals(), setSuffix(), and setTimeDisplay().
|
readwrite |
|
readwrite |
Referenced by setBase().
|
readwrite |
Referenced by setDecimals().
|
readwrite |
Referenced by setSuffix().
|
readwrite |
Referenced by setTimeDisplay().