|
lmms
Cross-platform music production software
|
#include <BarModelEditor.h>
Public Member Functions | |
| BarModelEditor (QString text, FloatModel *floatModel, QWidget *parent=nullptr) | |
| QSizePolicy | sizePolicy () const |
| QSize | minimumSizeHint () const override |
| QSize | sizeHint () const override |
| QBrush const & | getBackgroundBrush () const |
| void | setBackgroundBrush (QBrush const &backgroundBrush) |
| QBrush const & | getBarBrush () const |
| void | setBarBrush (QBrush const &barBrush) |
| QColor const & | getTextColor () 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) |
| void | setToolTip (const QString &tip) |
| Sets the tooltip displayed when the mouse hovers over the control. | |
| QString | toolTip () const |
| void | unsetToolTip () |
| Public Member Functions inherited from lmms::gui::TypedModelView< FloatModel > | |
| TypedModelView (Model *model, QWidget *_this) | |
| FloatModel * | model () |
| const FloatModel * | model () const |
| Public Member Functions inherited from lmms::gui::AutomatableModelView | |
| AutomatableModelView (Model *model, QWidget *_this) | |
| ~AutomatableModelView () override=default | |
| AutomatableModel * | modelUntyped () |
| const AutomatableModel * | modelUntyped () const |
| void | setModel (Model *model, bool isOldModelValid=true) override |
| void | unsetModel () override |
| template<typename T> | |
| 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 () |
| Model * | model () |
| const Model * | model () 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 | currentValueToText () |
| virtual std::optional< QString > | currentValueToTextUpdate () |
| virtual QString | getDynamicFloatingText (const QString ¤tValue) const |
| Provides the text to be shown in dynamic floating text. | |
| void | doConnections () override |
| void | showTextFloat (int msecBeforeDisplay, int msecDisplayTime, bool forceTextUpdate=false) |
| void | showTextFloat (bool forceTextUpdate=false) |
| const SimpleTextFloat & | textFloat () const |
| void | setPosition (const QPoint &p) |
| float | pageSize () const |
| DirectionOfManipulation | directionOfManipulation () const |
| InteractionType | currentInteraction () const |
| void | updateInteractionState (QEvent *event) |
| Updates m_interaction based on the event and current state. | |
| FloatingTextType | floatingTextType () 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 : bool { Vertical , Horizontal } |
| Signals inherited from lmms::gui::FloatModelEditorBase | |
| void | sliderPressed () |
| void | sliderReleased () |
| void | sliderMoved (float value) |
| Protected Types inherited from lmms::gui::FloatModelEditorBase | |
| enum class | InteractionType : std::uint8_t { None , MouseHover , MouseDrag , MouseWheel } |
| Types of user interaction with the control. More... | |
| enum class | FloatingTextType : std::uint8_t { None , Static , Dynamic } |
| Protected Attributes inherited from lmms::gui::FloatModelEditorBase | |
| QPoint | m_lastMousePos |
| mouse position in last mouseMoveEvent | |
| float | m_leftOver |
| Protected Attributes inherited from lmms::gui::AutomatableModelView | |
| QString | m_description |
| QString | m_unit |
| float | m_conversionFactor |
| lmms::gui::BarModelEditor::BarModelEditor | ( | QString | text, |
| FloatModel * | floatModel, | ||
| QWidget * | parent = nullptr ) |
| QBrush const & lmms::gui::BarModelEditor::getBackgroundBrush | ( | ) | const |
| QBrush const & lmms::gui::BarModelEditor::getBarBrush | ( | ) | const |
| QColor const & lmms::gui::BarModelEditor::getTextColor | ( | ) | const |
|
override |
|
overrideprotected |
| void lmms::gui::BarModelEditor::setBackgroundBrush | ( | QBrush const & | backgroundBrush | ) |
| void lmms::gui::BarModelEditor::setBarBrush | ( | QBrush const & | barBrush | ) |
| void lmms::gui::BarModelEditor::setTextColor | ( | QColor const & | textColor | ) |
|
override |
| QSizePolicy lmms::gui::BarModelEditor::sizePolicy | ( | ) | const |
|
private |
|
private |
|
private |
|
private |
|
readwrite |
|
readwrite |
|
readwrite |