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

#include <GroupBox.h>

Inheritance diagram for lmms::gui::GroupBox:
lmms::gui::TypedModelView< BoolModel > lmms::gui::AutomatableModelView lmms::gui::ModelView

Public Member Functions

 GroupBox (const QString &_caption, QWidget *_parent=nullptr)
 ~GroupBox () override
void modelChanged () override
PixmapButtonledButton ()
bool ledButtonShown () const
 Returns whether the LED button is shown or not.
void setLedButtonShown (bool value)
 Sets if the LED check box is shown or not.
int titleBarHeight () const
Public Member Functions inherited from lmms::gui::TypedModelView< BoolModel >
 TypedModelView (Model *model, QWidget *_this)
BoolModelmodel ()
const BoolModelmodel () 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 mousePressEvent (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 updatePixmap ()

Private Attributes

PixmapButtonm_led
QString m_caption
const int m_titleBarHeight

Additional Inherited Members

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

Constructor & Destructor Documentation

◆ GroupBox()

lmms::gui::GroupBox::GroupBox ( const QString & _caption,
QWidget * _parent = nullptr )

◆ ~GroupBox()

lmms::gui::GroupBox::~GroupBox ( )
override

Member Function Documentation

◆ ledButton()

PixmapButton * lmms::gui::GroupBox::ledButton ( )
inline

◆ ledButtonShown()

bool lmms::gui::GroupBox::ledButtonShown ( ) const

Returns whether the LED button is shown or not.

Returns
true LED button is shown
false LED button is hidden

◆ modelChanged()

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

Reimplemented from lmms::gui::ModelView.

◆ mousePressEvent()

void lmms::gui::GroupBox::mousePressEvent ( QMouseEvent * _me)
overrideprotectedvirtual

Reimplemented from lmms::gui::AutomatableModelView.

◆ paintEvent()

void lmms::gui::GroupBox::paintEvent ( QPaintEvent * _pe)
overrideprotected

◆ setLedButtonShown()

void lmms::gui::GroupBox::setLedButtonShown ( bool value)

Sets if the LED check box is shown or not.

Parameters
valueSet to true to show the LED check box or to false to hide it.

◆ titleBarHeight()

int lmms::gui::GroupBox::titleBarHeight ( ) const
inline

◆ updatePixmap()

void lmms::gui::GroupBox::updatePixmap ( )
private

Member Data Documentation

◆ m_caption

QString lmms::gui::GroupBox::m_caption
private

◆ m_led

PixmapButton* lmms::gui::GroupBox::m_led
private

◆ m_titleBarHeight

const int lmms::gui::GroupBox::m_titleBarHeight
private

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