|
lmms
Cross-platform music production software
|
#include <LcdSpinBox.h>
Public Slots | |
| virtual void | update () |
| Public Slots inherited from lmms::gui::LcdWidget | |
| virtual void | setMarginWidth (int width) |
Signals | |
| void | manualChange () |
Public Member Functions | |
| LcdSpinBox (int numDigits, QWidget *parent, const QString &name=QString()) | |
| LcdSpinBox (int numDigits, const QString &style, QWidget *parent, const QString &name=QString()) | |
| ~LcdSpinBox () override=default | |
| void | modelChanged () override |
| void | setDisplayOffset (int offset) |
| int | displayOffset () const |
| Returns internal offset for displaying values. | |
| Public Member Functions inherited from lmms::gui::LcdWidget | |
| 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) |
| Public Member Functions inherited from lmms::gui::TypedModelView< IntModel > | |
| TypedModelView (Model *model, QWidget *_this) | |
| IntModel * | model () |
| const IntModel * | 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 | contextMenuEvent (QContextMenuEvent *_me) override |
| void | mousePressEvent (QMouseEvent *_me) override |
| void | mouseMoveEvent (QMouseEvent *_me) override |
| void | mouseReleaseEvent (QMouseEvent *_me) override |
| void | wheelEvent (QWheelEvent *_we) override |
| void | mouseDoubleClickEvent (QMouseEvent *_me) override |
| Protected Member Functions inherited from lmms::gui::LcdWidget | |
| void | paintEvent (QPaintEvent *pe) override |
| virtual void | updateSize () |
| Protected Member Functions inherited from lmms::gui::ModelView | |
| QWidget * | widget () |
| virtual void | doConnections () |
Private Member Functions | |
| void | enterValue () |
Private Attributes | |
| float | m_remainder |
| floating offset of spinbox in [-0.5, 0.5] | |
| bool | m_mouseMoving |
| QPoint | m_lastMousePos |
| mouse position in last mouseMoveEvent | |
| int | m_displayOffset |
Additional Inherited Members | |
| Protected Attributes inherited from lmms::gui::AutomatableModelView | |
| QString | m_description |
| QString | m_unit |
| float | m_conversionFactor |
| Properties inherited from lmms::gui::LcdWidget | |
| QColor | textColor |
| QColor | textShadowColor |
| int | numDigits |
| lmms::gui::LcdSpinBox::LcdSpinBox | ( | int | numDigits, |
| QWidget * | parent, | ||
| const QString & | name = QString() ) |
| lmms::gui::LcdSpinBox::LcdSpinBox | ( | int | numDigits, |
| const QString & | style, | ||
| QWidget * | parent, | ||
| const QString & | name = QString() ) |
|
overridedefault |
|
overrideprotected |
|
inline |
Returns internal offset for displaying values.
|
private |
|
signal |
|
inlineoverridevirtual |
Reimplemented from lmms::gui::ModelView.
|
overrideprotected |
|
overrideprotected |
|
overrideprotectedvirtual |
Reimplemented from lmms::gui::AutomatableModelView.
|
overrideprotected |
|
inline |
Sets an offset which is always added to value of model so we can display values in a user-friendly way if they internally start at 0
|
virtualslot |
|
overrideprotected |
|
private |
|
private |
mouse position in last mouseMoveEvent
|
private |
|
private |
floating offset of spinbox in [-0.5, 0.5]