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

#include <BarModelEditor.h>

Inheritance diagram for lmms::gui::BarModelEditor:
lmms::gui::FloatModelEditorBase lmms::gui::TypedModelView< FloatModel > lmms::gui::AutomatableModelView lmms::gui::ModelView lmms::gui::TempoSyncBarModelEditor

Public Member Functions

 BarModelEditor (QString text, FloatModel *floatModel, QWidget *parent=nullptr)
QSizePolicy sizePolicy () const
QSize minimumSizeHint () const override
QSize sizeHint () const override
QBrush constgetBackgroundBrush () const
void setBackgroundBrush (QBrush const &backgroundBrush)
QBrush constgetBarBrush () const
void setBarBrush (QBrush const &barBrush)
QColor constgetTextColor () const
void setTextColor (QColor const &textColor)
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 Member Functions

void paintEvent (QPaintEvent *event) override
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
virtual void modelChanged ()
QWidget * widget ()

Properties

QBrush backgroundBrush
QBrush barBrush
QColor textColor

Private Attributes

QString const m_text
QBrush m_backgroundBrush
QBrush m_barBrush
QColor m_textColor

Additional Inherited Members

Public Types inherited from lmms::gui::FloatModelEditorBase
enum class  DirectionOfManipulation { Vertical , Horizontal }
Signals inherited from lmms::gui::FloatModelEditorBase
void sliderPressed ()
void sliderReleased ()
void sliderMoved (float value)
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

Constructor & Destructor Documentation

◆ BarModelEditor()

lmms::gui::BarModelEditor::BarModelEditor ( QString text,
FloatModel * floatModel,
QWidget * parent = nullptr )

Member Function Documentation

◆ getBackgroundBrush()

QBrush const & lmms::gui::BarModelEditor::getBackgroundBrush ( ) const

◆ getBarBrush()

QBrush const & lmms::gui::BarModelEditor::getBarBrush ( ) const

◆ getTextColor()

QColor const & lmms::gui::BarModelEditor::getTextColor ( ) const

◆ minimumSizeHint()

QSize lmms::gui::BarModelEditor::minimumSizeHint ( ) const
override

◆ paintEvent()

void lmms::gui::BarModelEditor::paintEvent ( QPaintEvent * event)
overrideprotected

◆ setBackgroundBrush()

void lmms::gui::BarModelEditor::setBackgroundBrush ( QBrush const & backgroundBrush)

◆ setBarBrush()

void lmms::gui::BarModelEditor::setBarBrush ( QBrush const & barBrush)

◆ setTextColor()

void lmms::gui::BarModelEditor::setTextColor ( QColor const & textColor)

◆ sizeHint()

QSize lmms::gui::BarModelEditor::sizeHint ( ) const
override

◆ sizePolicy()

QSizePolicy lmms::gui::BarModelEditor::sizePolicy ( ) const

Member Data Documentation

◆ m_backgroundBrush

QBrush lmms::gui::BarModelEditor::m_backgroundBrush
private

◆ m_barBrush

QBrush lmms::gui::BarModelEditor::m_barBrush
private

◆ m_text

QString const lmms::gui::BarModelEditor::m_text
private

◆ m_textColor

QColor lmms::gui::BarModelEditor::m_textColor
private

Property Documentation

◆ backgroundBrush

QBrush lmms::gui::BarModelEditor::backgroundBrush
readwrite

◆ barBrush

QBrush lmms::gui::BarModelEditor::barBrush
readwrite

◆ textColor

QColor lmms::gui::BarModelEditor::textColor
readwrite

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