LMMS
Loading...
Searching...
No Matches
lmms::gui::LcdFloatSpinBox Class Reference

#include <LcdFloatSpinBox.h>

Inheritance diagram for lmms::gui::LcdFloatSpinBox:
lmms::gui::TypedModelView< FloatModel > lmms::gui::AutomatableModelView lmms::gui::ModelView

Public Slots

virtual void update ()

Signals

void manualChange ()

Public Member Functions

 LcdFloatSpinBox (int numWhole, int numFrac, const QString &name=QString(), QWidget *parent=nullptr)
 LcdFloatSpinBox (int numWhole, int numFrac, const QString &style, const QString &name, QWidget *parent=nullptr)
void modelChanged () override
void setLabel (const QString &label)
void setSeamless (bool left, bool right)
Public Member Functions inherited from lmms::gui::TypedModelView< FloatModel >
 TypedModelView (Model *model, QWidget *_this)
FloatModelmodel ()
const FloatModelmodel () const
Public Member Functions inherited from lmms::gui::AutomatableModelView
 AutomatableModelView (Model *model, QWidget *_this)
 ~AutomatableModelView () override=default
AutomatableModelmodelUntyped ()
const AutomatableModelmodelUntyped () const
void setModel (Model *model, bool isOldModelValid=true) override
void unsetModel () override
template<typename 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 ()
Modelmodel ()
const Modelmodel () 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
void paintEvent (QPaintEvent *pe) override
Protected Member Functions inherited from lmms::gui::ModelView
QWidget * widget ()
virtual void doConnections ()

Private Member Functions

void layoutSetup (const QString &style=QString("19green"))
void enterValue ()
float getStep () const

Private Attributes

LcdWidget m_wholeDisplay
LcdWidget m_fractionDisplay
bool m_mouseMoving
bool m_intStep
QPoint m_origMousePos
int m_displayOffset
QString m_label

Additional Inherited Members

Protected Attributes inherited from lmms::gui::AutomatableModelView
QString m_description
QString m_unit
float m_conversionFactor

Constructor & Destructor Documentation

◆ LcdFloatSpinBox() [1/2]

lmms::gui::LcdFloatSpinBox::LcdFloatSpinBox ( int numWhole,
int numFrac,
const QString & name = QString(),
QWidget * parent = nullptr )

◆ LcdFloatSpinBox() [2/2]

lmms::gui::LcdFloatSpinBox::LcdFloatSpinBox ( int numWhole,
int numFrac,
const QString & style,
const QString & name,
QWidget * parent = nullptr )

Member Function Documentation

◆ contextMenuEvent()

void lmms::gui::LcdFloatSpinBox::contextMenuEvent ( QContextMenuEvent * me)
overrideprotected

◆ enterValue()

void lmms::gui::LcdFloatSpinBox::enterValue ( )
private

◆ getStep()

float lmms::gui::LcdFloatSpinBox::getStep ( ) const
private

◆ layoutSetup()

void lmms::gui::LcdFloatSpinBox::layoutSetup ( const QString & style = QString("19green"))
private

◆ manualChange

void lmms::gui::LcdFloatSpinBox::manualChange ( )
signal

◆ modelChanged()

void lmms::gui::LcdFloatSpinBox::modelChanged ( )
inlineoverridevirtual

Reimplemented from lmms::gui::ModelView.

◆ mouseDoubleClickEvent()

void lmms::gui::LcdFloatSpinBox::mouseDoubleClickEvent ( QMouseEvent * me)
overrideprotected

◆ mouseMoveEvent()

void lmms::gui::LcdFloatSpinBox::mouseMoveEvent ( QMouseEvent * me)
overrideprotected

◆ mousePressEvent()

void lmms::gui::LcdFloatSpinBox::mousePressEvent ( QMouseEvent * me)
overrideprotectedvirtual

Reimplemented from lmms::gui::AutomatableModelView.

◆ mouseReleaseEvent()

void lmms::gui::LcdFloatSpinBox::mouseReleaseEvent ( QMouseEvent * me)
overrideprotected

◆ paintEvent()

void lmms::gui::LcdFloatSpinBox::paintEvent ( QPaintEvent * pe)
overrideprotected

◆ setLabel()

void lmms::gui::LcdFloatSpinBox::setLabel ( const QString & label)
inline

◆ setSeamless()

void lmms::gui::LcdFloatSpinBox::setSeamless ( bool left,
bool right )
inline

◆ update

void lmms::gui::LcdFloatSpinBox::update ( )
virtualslot

◆ wheelEvent()

void lmms::gui::LcdFloatSpinBox::wheelEvent ( QWheelEvent * we)
overrideprotected

Member Data Documentation

◆ m_displayOffset

int lmms::gui::LcdFloatSpinBox::m_displayOffset
private

◆ m_fractionDisplay

LcdWidget lmms::gui::LcdFloatSpinBox::m_fractionDisplay
private

◆ m_intStep

bool lmms::gui::LcdFloatSpinBox::m_intStep
private

◆ m_label

QString lmms::gui::LcdFloatSpinBox::m_label
private

◆ m_mouseMoving

bool lmms::gui::LcdFloatSpinBox::m_mouseMoving
private

◆ m_origMousePos

QPoint lmms::gui::LcdFloatSpinBox::m_origMousePos
private

◆ m_wholeDisplay

LcdWidget lmms::gui::LcdFloatSpinBox::m_wholeDisplay
private

The documentation for this class was generated from the following files: