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

#include <AutomatableModelView.h>

Inheritance diagram for lmms::gui::AutomatableModelView:
lmms::gui::ModelView lmms::gui::TypedModelView< FloatModel > lmms::gui::TypedModelView< IntModel > lmms::gui::TypedModelView< BoolModel > lmms::gui::TypedModelView< ModelType > lmms::gui::Fader lmms::gui::FloatModelEditorBase lmms::gui::LcdFloatSpinBox lmms::gui::AutomatableButtonGroup lmms::gui::AutomatableSlider lmms::gui::ComboBox lmms::gui::LcdSpinBox lmms::gui::NineButtonSelector lmms::gui::AutomatableButton lmms::gui::GroupBox

Public Member Functions

 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

virtual void mousePressEvent (QMouseEvent *event)
Protected Member Functions inherited from lmms::gui::ModelView
virtual void modelChanged ()
QWidget * widget ()
virtual void doConnections ()

Protected Attributes

QString m_description
QString m_unit
float m_conversionFactor

Constructor & Destructor Documentation

◆ AutomatableModelView()

lmms::gui::AutomatableModelView::AutomatableModelView ( Model * model,
QWidget * _this )

◆ ~AutomatableModelView()

lmms::gui::AutomatableModelView::~AutomatableModelView ( )
overridedefault

Member Function Documentation

◆ addDefaultActions()

void lmms::gui::AutomatableModelView::addDefaultActions ( QMenu * menu)

◆ getConversionFactor()

float lmms::gui::AutomatableModelView::getConversionFactor ( )

◆ modelUntyped() [1/2]

AutomatableModel * lmms::gui::AutomatableModelView::modelUntyped ( )
inline

◆ modelUntyped() [2/2]

const AutomatableModel * lmms::gui::AutomatableModelView::modelUntyped ( ) const
inline

◆ mousePressEvent()

◆ setConversionFactor()

void lmms::gui::AutomatableModelView::setConversionFactor ( float factor)

◆ setDescription()

void lmms::gui::AutomatableModelView::setDescription ( const QString & desc)
inline

◆ setModel()

void lmms::gui::AutomatableModelView::setModel ( Model * model,
bool isOldModelValid = true )
overridevirtual

Reimplemented from lmms::gui::ModelView.

◆ setUnit()

void lmms::gui::AutomatableModelView::setUnit ( const QString & unit)
inline

◆ unsetModel()

void lmms::gui::AutomatableModelView::unsetModel ( )
overridevirtual

Reimplemented from lmms::gui::ModelView.

◆ value()

template<typename T>
T lmms::gui::AutomatableModelView::value ( ) const
inline

Member Data Documentation

◆ m_conversionFactor

float lmms::gui::AutomatableModelView::m_conversionFactor
protected

◆ m_description

QString lmms::gui::AutomatableModelView::m_description
protected

◆ m_unit

QString lmms::gui::AutomatableModelView::m_unit
protected

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