|
LMMS
|
A pixmap that can be dragged from one location to another to control a FloatModel. More...
#include <Draggable.h>
Public Types | |
| enum class | DirectionOfManipulation |
| Public Types inherited from lmms::gui::FloatModelEditorBase | |
| enum class | DirectionOfManipulation { Vertical , Horizontal } |
Protected Slots | |
| void | handleMovement () |
Protected Member Functions | |
| void | paintEvent (QPaintEvent *event) override |
| void | mouseMoveEvent (QMouseEvent *me) 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 () |
Private Attributes | |
| QPixmap | m_pixmap |
| QPixmap | m_defaultValPixmap |
| float | m_pointA |
| float | m_pointB |
| float | m_defaultValue |
| bool | m_hasDefaultValPixmap |
Additional Inherited Members | |
| 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 SimpleTextFloat * | s_textFloat = nullptr |
A pixmap that can be dragged from one location to another to control a FloatModel.
|
strong |
| lmms::gui::Draggable::Draggable | ( | DirectionOfManipulation | directionOfManipulation, |
| FloatModel * | floatModel, | ||
| const QPixmap & | pixmap, | ||
| int | pointA, | ||
| int | pointB, | ||
| QWidget * | parent = nullptr ) |
| directionOfManipulation | Direction the user can drag the control |
| floatModel | Pointer to the FloatModel this draggable modifies |
| pixmap | The pixmap shown for this handle |
| pointA | Starting pixel position (Y if vertical, X if horizontal) |
| pointB | Ending pixel position (Y if vertical, X if horizontal) |
| parent | Parent QWidget |
|
protectedslot |
|
overrideprotected |
|
overrideprotected |
|
override |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |