|
lmms
Cross-platform music production software
|
#include <LcdWidget.h>
Public Slots | |
| virtual void | setMarginWidth (int width) |
Public Member Functions | |
| LcdWidget (QWidget *parent, const QString &name=QString(), bool leadingZero=false) | |
| LcdWidget (int numDigits, QWidget *parent, const QString &name=QString(), bool leadingZero=false) | |
| LcdWidget (int numDigits, const QString &style, QWidget *parent, const QString &name=QString(), bool leadingZero=false) | |
| void | setValue (int value) |
| void | setValue (float value) |
| void | setLabel (const QString &label) |
| void | addTextForValue (int value, const QString &text) |
| int | numDigits () const |
| void | setNumDigits (int n) |
| QColor | textColor () const |
| void | setTextColor (const QColor &c) |
| QColor | textShadowColor () const |
| void | setTextShadowColor (const QColor &c) |
| int | cellHeight () const |
| void | setSeamless (bool left, bool right) |
Protected Member Functions | |
| void | paintEvent (QPaintEvent *pe) override |
| virtual void | updateSize () |
Properties | |
| QColor | textColor |
| QColor | textShadowColor |
| int | numDigits |
Private Member Functions | |
| void | initUi (const QString &name, const QString &style) |
| to be called by ctors | |
Private Attributes | |
| QMap< int, QString > | m_textForValue |
| QString | m_display |
| QString | m_label |
| QPixmap | m_lcdPixmap |
| QColor | m_textColor |
| QColor | m_textShadowColor |
| int | m_cellWidth |
| int | m_cellHeight |
| int | m_numDigits |
| int | m_marginWidth |
| bool | m_seamlessLeft |
| bool | m_seamlessRight |
| bool | m_leadingZero |
Static Private Attributes | |
| static const int | charsPerPixmap = 12 |
|
explicit |
| lmms::gui::LcdWidget::LcdWidget | ( | int | numDigits, |
| QWidget * | parent, | ||
| const QString & | name = QString(), | ||
| bool | leadingZero = false ) |
| lmms::gui::LcdWidget::LcdWidget | ( | int | numDigits, |
| const QString & | style, | ||
| QWidget * | parent, | ||
| const QString & | name = QString(), | ||
| bool | leadingZero = false ) |
|
inline |
|
inline |
|
private |
to be called by ctors
|
inline |
|
overrideprotected |
| void lmms::gui::LcdWidget::setLabel | ( | const QString & | label | ) |
|
virtualslot |
|
inline |
|
inline |
| void lmms::gui::LcdWidget::setTextColor | ( | const QColor & | c | ) |
| void lmms::gui::LcdWidget::setTextShadowColor | ( | const QColor & | c | ) |
| void lmms::gui::LcdWidget::setValue | ( | float | value | ) |
| void lmms::gui::LcdWidget::setValue | ( | int | value | ) |
| QColor lmms::gui::LcdWidget::textColor | ( | ) | const |
| QColor lmms::gui::LcdWidget::textShadowColor | ( | ) | const |
|
protectedvirtual |
|
staticprivate |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
readwrite |
|
readwrite |
|
readwrite |