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

#include <FloatModelEditorBase.h>

Inheritance diagram for lmms::gui::FloatModelEditorBase:
lmms::gui::TypedModelView< FloatModel > lmms::gui::AutomatableModelView lmms::gui::ModelView lmms::gui::BarModelEditor lmms::gui::Draggable lmms::gui::Knob lmms::gui::TempoSyncBarModelEditor lmms::gui::AudioFileProcessorWaveView::knob lmms::gui::CustomTextKnob lmms::gui::FreeBoyKnob lmms::gui::KickerKnob lmms::gui::KickerLargeKnob lmms::gui::OrganicKnob lmms::gui::Sf2Knob lmms::gui::SfxrKnob lmms::gui::TempoSyncKnob lmms::gui::TripleOscKnob lmms::gui::XpressiveKnob lmms::gui::gigKnob lmms::gui::sidKnob

Public Types

enum class  DirectionOfManipulation { Vertical , Horizontal }

Signals

void sliderPressed ()
void sliderReleased ()
void sliderMoved (float value)

Public Member Functions

 FloatModelEditorBase (DirectionOfManipulation directionOfManipulation=DirectionOfManipulation::Vertical, QWidget *_parent=nullptr, const QString &_name=QString())
 default ctor
 FloatModelEditorBase (const FloatModelEditorBase &other)=delete
void setHintText (const QString &txt_before, const QString &txt_after)
bool isVolumeKnob () const
void setVolumeKnob (const bool val)
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 dragEnterEvent (QDragEnterEvent *dee) override
void dropEvent (QDropEvent *de) override
void focusOutEvent (QFocusEvent *fe) override
void mousePressEvent (QMouseEvent *me) override
void mouseReleaseEvent (QMouseEvent *me) override
void mouseMoveEvent (QMouseEvent *me) override
void mouseDoubleClickEvent (QMouseEvent *me) override
void paintEvent (QPaintEvent *me) override
void wheelEvent (QWheelEvent *me) override
void enterEvent (QEnterEvent *) override
void leaveEvent (QEvent *event) override
virtual float getValue (const QPoint &p)
virtual QString displayValue () const
void doConnections () override
void showTextFloat (int msecBeforeDisplay, int msecDisplayTime)
void setPosition (const QPoint &p)
float pageSize () const
Protected Member Functions inherited from lmms::gui::ModelView
virtual void modelChanged ()
QWidget * widget ()

Protected Attributes

bool m_volumeKnob
FloatModel m_volumeRatio
QPoint m_lastMousePos
 mouse position in last mouseMoveEvent
float m_leftOver
bool m_buttonPressed
DirectionOfManipulation m_directionOfManipulation
Protected Attributes inherited from lmms::gui::AutomatableModelView
QString m_description
QString m_unit
float m_conversionFactor

Static Protected Attributes

static SimpleTextFloats_textFloat = nullptr

Private Slots

virtual void enterValue ()
void friendlyUpdate ()
void toggleScale ()

Private Member Functions

 mapPropertyFromModel (float, volumeRatio, setVolumeRatio, m_volumeRatio)
void initUi (const QString &name)
 to be called by ctors

Member Enumeration Documentation

◆ DirectionOfManipulation

Enumerator
Vertical 
Horizontal 

Constructor & Destructor Documentation

◆ FloatModelEditorBase() [1/2]

lmms::gui::FloatModelEditorBase::FloatModelEditorBase ( DirectionOfManipulation directionOfManipulation = DirectionOfManipulation::Vertical,
QWidget * _parent = nullptr,
const QString & _name = QString() )

default ctor

◆ FloatModelEditorBase() [2/2]

lmms::gui::FloatModelEditorBase::FloatModelEditorBase ( const FloatModelEditorBase & other)
delete

Member Function Documentation

◆ contextMenuEvent()

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

◆ displayValue()

QString lmms::gui::FloatModelEditorBase::displayValue ( ) const
protectedvirtual

Reimplemented in lmms::gui::CustomTextKnob.

◆ doConnections()

void lmms::gui::FloatModelEditorBase::doConnections ( )
overrideprotectedvirtual

Reimplemented from lmms::gui::ModelView.

◆ dragEnterEvent()

void lmms::gui::FloatModelEditorBase::dragEnterEvent ( QDragEnterEvent * dee)
overrideprotected

◆ dropEvent()

void lmms::gui::FloatModelEditorBase::dropEvent ( QDropEvent * de)
overrideprotected

◆ enterEvent()

void lmms::gui::FloatModelEditorBase::enterEvent ( QEnterEvent * )
overrideprotected

◆ enterValue

void lmms::gui::FloatModelEditorBase::enterValue ( )
privatevirtualslot

◆ focusOutEvent()

void lmms::gui::FloatModelEditorBase::focusOutEvent ( QFocusEvent * fe)
overrideprotected

◆ friendlyUpdate

void lmms::gui::FloatModelEditorBase::friendlyUpdate ( )
privateslot

◆ getValue()

float lmms::gui::FloatModelEditorBase::getValue ( const QPoint & p)
protectedvirtual

◆ initUi()

void lmms::gui::FloatModelEditorBase::initUi ( const QString & name)
private

to be called by ctors

◆ isVolumeKnob()

bool lmms::gui::FloatModelEditorBase::isVolumeKnob ( ) const
inline

◆ leaveEvent()

void lmms::gui::FloatModelEditorBase::leaveEvent ( QEvent * event)
overrideprotected

◆ mapPropertyFromModel()

lmms::gui::FloatModelEditorBase::mapPropertyFromModel ( float ,
volumeRatio ,
setVolumeRatio ,
m_volumeRatio  )
private

◆ mouseDoubleClickEvent()

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

◆ mouseMoveEvent()

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

◆ mousePressEvent()

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

Reimplemented from lmms::gui::AutomatableModelView.

◆ mouseReleaseEvent()

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

◆ pageSize()

float lmms::gui::FloatModelEditorBase::pageSize ( ) const
inlineprotected

◆ paintEvent()

void lmms::gui::FloatModelEditorBase::paintEvent ( QPaintEvent * me)
overrideprotected

◆ setHintText()

void lmms::gui::FloatModelEditorBase::setHintText ( const QString & txt_before,
const QString & txt_after )
inline

◆ setPosition()

void lmms::gui::FloatModelEditorBase::setPosition ( const QPoint & p)
protected

◆ setVolumeKnob()

void lmms::gui::FloatModelEditorBase::setVolumeKnob ( const bool val)
inline

◆ showTextFloat()

void lmms::gui::FloatModelEditorBase::showTextFloat ( int msecBeforeDisplay,
int msecDisplayTime )
protected

◆ sliderMoved

void lmms::gui::FloatModelEditorBase::sliderMoved ( float value)
signal

◆ sliderPressed

void lmms::gui::FloatModelEditorBase::sliderPressed ( )
signal

◆ sliderReleased

void lmms::gui::FloatModelEditorBase::sliderReleased ( )
signal

◆ toggleScale

void lmms::gui::FloatModelEditorBase::toggleScale ( )
privateslot

◆ wheelEvent()

void lmms::gui::FloatModelEditorBase::wheelEvent ( QWheelEvent * me)
overrideprotected

Member Data Documentation

◆ m_buttonPressed

bool lmms::gui::FloatModelEditorBase::m_buttonPressed
protected

◆ m_directionOfManipulation

DirectionOfManipulation lmms::gui::FloatModelEditorBase::m_directionOfManipulation
protected

◆ m_lastMousePos

QPoint lmms::gui::FloatModelEditorBase::m_lastMousePos
protected

mouse position in last mouseMoveEvent

◆ m_leftOver

float lmms::gui::FloatModelEditorBase::m_leftOver
protected

◆ m_volumeKnob

bool lmms::gui::FloatModelEditorBase::m_volumeKnob
protected

◆ m_volumeRatio

FloatModel lmms::gui::FloatModelEditorBase::m_volumeRatio
protected

◆ s_textFloat

SimpleTextFloat * lmms::gui::FloatModelEditorBase::s_textFloat = nullptr
staticprotected

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