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

#include <TempoSyncKnob.h>

Inheritance diagram for lmms::gui::TempoSyncKnob:
lmms::gui::Knob lmms::gui::FloatModelEditorBase lmms::gui::TypedModelView< FloatModel > lmms::gui::AutomatableModelView lmms::gui::ModelView lmms::gui::KickerEnvKnob

Signals

void syncDescriptionChanged (const QString &_new_description)
void syncIconChanged ()
Signals inherited from lmms::gui::FloatModelEditorBase
void sliderPressed ()
void sliderReleased ()
void sliderMoved (float value)

Public Member Functions

 TempoSyncKnob (KnobType knobNum, QWidget *parent=nullptr, const QString &name=QString())
 TempoSyncKnob (KnobType knobNum, const QString &labelText, QWidget *parent=nullptr, LabelRendering labelRendering=LabelRendering::WidgetFont, const QString &name=QString())
 Construct a TempoSyncKnob with the given style and label text.
 TempoSyncKnob (KnobType knobNum, const QString &labelText, int labelPixelSize, QWidget *parent, const QString &name=QString())
 Constructs a tempo sync knob with a label font in the pixel size.
 ~TempoSyncKnob () override
const QString & syncDescription ()
void setSyncDescription (const QString &_new_description)
const QPixmap & syncIcon ()
void setSyncIcon (const QPixmap &_new_pix)
TempoSyncKnobModelmodel ()
void modelChanged () override
Public Member Functions inherited from lmms::gui::Knob
 Knob (KnobType _knob_num, QWidget *_parent=nullptr, const QString &_name=QString())
 Construct a Knob with the given style and no label.
 Knob (KnobType knobNum, const QString &labelText, QWidget *parent=nullptr, LabelRendering labelRendering=LabelRendering::WidgetFont, const QString &name=QString())
 Construct a Knob with the given style and label text.
 Knob (KnobType knobNum, const QString &labelText, int labelPixelSize, QWidget *parent, const QString &name=QString())
 Constructs a knob with a label font in the pixel size.
 Knob (QWidget *_parent=nullptr, const QString &_name=QString())
 default ctor
 Knob (const Knob &other)=delete
const QString & getLabel () const
void setLabel (const QString &txt)
void setTotalAngle (float angle)
float innerRadius () const
void setInnerRadius (float r)
float outerRadius () const
void setOuterRadius (float r)
KnobType knobNum () const
void setknobNum (KnobType k)
QPointF centerPoint () const
float centerPointX () const
void setCenterPointX (float c)
float centerPointY () const
void setCenterPointY (float c)
float lineWidth () const
void setLineWidth (float w)
QColor outerColor () const
void setOuterColor (const QColor &c)
QColor textColor () const
void setTextColor (const QColor &c)
Public Member Functions inherited from lmms::gui::FloatModelEditorBase
 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 Slots

void updateDescAndIcon ()
void showCustom ()

Protected Member Functions

void contextMenuEvent (QContextMenuEvent *_me) override
Protected Member Functions inherited from lmms::gui::Knob
void paintEvent (QPaintEvent *) override
void changeEvent (QEvent *ev) override
bool fixedFontSizeLabelRendering () const
void setFixedFontSizeLabelRendering ()
Protected Member Functions inherited from lmms::gui::FloatModelEditorBase
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
QWidget * widget ()

Private Attributes

QPixmap m_tempoSyncIcon
QString m_tempoSyncDescription
QPointer< MeterDialogm_custom

Additional Inherited Members

Public Types inherited from lmms::gui::Knob
enum class  LabelRendering { WidgetFont , LegacyFixedFontSize }
 Determines how the label of the knob is rendered. More...
Public Types inherited from lmms::gui::FloatModelEditorBase
enum class  DirectionOfManipulation { Vertical , Horizontal }
Protected Attributes inherited from lmms::gui::FloatModelEditorBase
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 inherited from lmms::gui::FloatModelEditorBase
static SimpleTextFloats_textFloat = nullptr
Properties inherited from lmms::gui::Knob
float innerRadius
float outerRadius
float centerPointX
float centerPointY
float lineWidth
QColor outerColor
QColor lineActiveColor
QColor lineInactiveColor
QColor arcActiveColor
QColor arcInactiveColor
KnobType knobNum
QColor textColor

Constructor & Destructor Documentation

◆ TempoSyncKnob() [1/3]

lmms::gui::TempoSyncKnob::TempoSyncKnob ( KnobType knobNum,
QWidget * parent = nullptr,
const QString & name = QString() )

◆ TempoSyncKnob() [2/3]

lmms::gui::TempoSyncKnob::TempoSyncKnob ( KnobType knobNum,
const QString & labelText,
QWidget * parent = nullptr,
LabelRendering labelRendering = LabelRendering::WidgetFont,
const QString & name = QString() )

Construct a TempoSyncKnob with the given style and label text.

Parameters
knobNumStyle of the knob
labelTextText for the label
parentParent widget
labelRenderingDetermines if the label uses the widget font or a font with a fixed size of 12 pixels (LegacyFixedFontSize). The default is to use the widget font.
nameObject name of the widget

◆ TempoSyncKnob() [3/3]

lmms::gui::TempoSyncKnob::TempoSyncKnob ( KnobType knobNum,
const QString & labelText,
int labelPixelSize,
QWidget * parent,
const QString & name = QString() )

Constructs a tempo sync knob with a label font in the pixel size.

Parameters
knobNumStyle of the knob
labelTextText for the label
labelPixelSizePixel size for the label
parentParent widget
nameObject name of the widget

◆ ~TempoSyncKnob()

lmms::gui::TempoSyncKnob::~TempoSyncKnob ( )
override

Member Function Documentation

◆ contextMenuEvent()

void lmms::gui::TempoSyncKnob::contextMenuEvent ( QContextMenuEvent * _me)
overrideprotected

◆ model()

TempoSyncKnobModel * lmms::gui::TempoSyncKnob::model ( )
inline

◆ modelChanged()

void lmms::gui::TempoSyncKnob::modelChanged ( )
overridevirtual

Reimplemented from lmms::gui::ModelView.

◆ setSyncDescription()

void lmms::gui::TempoSyncKnob::setSyncDescription ( const QString & _new_description)

◆ setSyncIcon()

void lmms::gui::TempoSyncKnob::setSyncIcon ( const QPixmap & _new_pix)

◆ showCustom

void lmms::gui::TempoSyncKnob::showCustom ( )
protectedslot

◆ syncDescription()

const QString & lmms::gui::TempoSyncKnob::syncDescription ( )

◆ syncDescriptionChanged

void lmms::gui::TempoSyncKnob::syncDescriptionChanged ( const QString & _new_description)
signal

◆ syncIcon()

const QPixmap & lmms::gui::TempoSyncKnob::syncIcon ( )

◆ syncIconChanged

void lmms::gui::TempoSyncKnob::syncIconChanged ( )
signal

◆ updateDescAndIcon

void lmms::gui::TempoSyncKnob::updateDescAndIcon ( )
protectedslot

Member Data Documentation

◆ m_custom

QPointer<MeterDialog> lmms::gui::TempoSyncKnob::m_custom
private

◆ m_tempoSyncDescription

QString lmms::gui::TempoSyncKnob::m_tempoSyncDescription
private

◆ m_tempoSyncIcon

QPixmap lmms::gui::TempoSyncKnob::m_tempoSyncIcon
private

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