|
lmms
Cross-platform music production software
|
#include <LedCheckBox.h>
Public Types | |
| enum class | LedColor { Yellow , Green , Red } |
Public Member Functions | |
| LedCheckBox (const QString &_txt, QWidget *_parent, const QString &_name=QString(), LedColor _color=LedColor::Yellow, bool legacyMode=true) | |
| LedCheckBox (QWidget *_parent, const QString &_name=QString(), LedColor _color=LedColor::Yellow, bool legacyMode=true) | |
| const QString & | text () |
| void | setText (const QString &s) |
| void | setLedColor (LedColor color) |
| Public Member Functions inherited from lmms::gui::AutomatableButton | |
| AutomatableButton (QWidget *_parent, const QString &_name=QString()) | |
| ~AutomatableButton () override | |
| void | setCheckable (bool _on) |
| void | modelChanged () override |
| Public Member Functions inherited from lmms::gui::TypedModelView< BoolModel > | |
| TypedModelView (Model *model, QWidget *_this) | |
| BoolModel * | model () |
| const BoolModel * | model () const |
| Public Member Functions inherited from lmms::gui::AutomatableModelView | |
| AutomatableModelView (Model *model, QWidget *_this) | |
| ~AutomatableModelView () override=default | |
| AutomatableModel * | modelUntyped () |
| const AutomatableModel * | modelUntyped () const |
| void | setModel (Model *model, bool isOldModelValid=true) override |
| void | unsetModel () override |
| template<typename T> | |
| T | value () const |
| void | setDescription (const QString &desc) |
| void | setUnit (const QString &unit) |
| void | addDefaultActions (QMenu *menu) |
| void | setConversionFactor (float factor) |
| float | getConversionFactor () |
| Public Member Functions inherited from lmms::gui::ModelView | |
| ModelView (Model *model, QWidget *widget) | |
| virtual | ~ModelView () |
| Model * | model () |
| const Model * | model () const |
| template<class T> | |
| T * | castModel () |
| template<class T> | |
| const T * | castModel () const |
Protected Member Functions | |
| void | paintEvent (QPaintEvent *_pe) override |
| Protected Member Functions inherited from lmms::gui::AutomatableButton | |
| void | contextMenuEvent (QContextMenuEvent *_me) override |
| void | mousePressEvent (QMouseEvent *_me) override |
| void | mouseReleaseEvent (QMouseEvent *_me) override |
| Protected Member Functions inherited from lmms::gui::ModelView | |
| QWidget * | widget () |
| virtual void | doConnections () |
Properties | |
| QString | text |
Private Member Functions | |
| void | onTextUpdated () |
| to be called when you updated m_text | |
| void | paintLegacy (QPaintEvent *p) |
| void | paintNonLegacy (QPaintEvent *p) |
Private Attributes | |
| QPixmap | m_ledOnPixmap |
| QPixmap | m_ledOffPixmap |
| QString | m_text |
| bool | m_legacyMode |
Additional Inherited Members | |
| Public Slots inherited from lmms::gui::AutomatableButton | |
| virtual void | update () |
| virtual void | toggle () |
| virtual void | setChecked (bool _on) |
| Protected Attributes inherited from lmms::gui::AutomatableModelView | |
| QString | m_description |
| QString | m_unit |
| float | m_conversionFactor |
|
strong |
| lmms::gui::LedCheckBox::LedCheckBox | ( | const QString & | _txt, |
| QWidget * | _parent, | ||
| const QString & | _name = QString(), | ||
| LedColor | _color = LedColor::Yellow, | ||
| bool | legacyMode = true ) |
| lmms::gui::LedCheckBox::LedCheckBox | ( | QWidget * | _parent, |
| const QString & | _name = QString(), | ||
| LedColor | _color = LedColor::Yellow, | ||
| bool | legacyMode = true ) |
|
private |
to be called when you updated m_text
|
overrideprotected |
|
private |
|
private |
| void lmms::gui::LedCheckBox::setLedColor | ( | LedColor | color | ) |
| void lmms::gui::LedCheckBox::setText | ( | const QString & | s | ) |
|
inline |
|
private |
|
private |
|
private |
|
private |
|
readwrite |