|
lmms
Cross-platform music production software
|
#include <TrackView.h>
Public Slots | |
| virtual bool | close () |
| Close this track View. | |
Public Member Functions | |
| TrackView (Track *track, TrackContainerView *tcv) | |
| Create a new track View. | |
| ~TrackView () override=default | |
| const Track * | getTrack () const |
| Track * | getTrack () |
| TrackContainerView * | trackContainerView () |
| TrackOperationsWidget * | getTrackOperationsWidget () |
| QWidget * | getTrackSettingsWidget () |
| TrackContentWidget * | getTrackContentWidget () |
| bool | isMovingTrack () const |
| virtual void | update () |
| Update this track View and all its content objects. | |
| virtual QMenu * | createMixerMenu (QString title, QString newMixerLabel) |
| Create a menu for assigning/creating channels for this track. | |
| Public Member Functions inherited from lmms::gui::ModelView | |
| ModelView (Model *model, QWidget *widget) | |
| virtual | ~ModelView () |
| virtual void | setModel (Model *model, bool isOldModelValid=true) |
| virtual void | unsetModel () |
| Model * | model () |
| const Model * | model () const |
| template<class T> | |
| T * | castModel () |
| template<class T> | |
| const T * | castModel () const |
| Public Member Functions inherited from lmms::JournallingObject | |
| JournallingObject () | |
| ~JournallingObject () override | |
| jo_id_t | id () const |
| void | saveJournallingState (const bool newState) |
| void | restoreJournallingState () |
| void | addJournalCheckPoint () |
| QDomElement | saveState (QDomDocument &_doc, QDomElement &_parent) override |
| void | restoreState (const QDomElement &_this) override |
| bool | isJournalling () const |
| void | setJournalling (const bool _sr) |
| bool | testAndSetJournalling (const bool newState) |
| bool | isJournallingStateStackEmpty () const |
| Public Member Functions inherited from lmms::SerializingObject | |
| SerializingObject () | |
| virtual | ~SerializingObject () |
| void | setHook (SerializingObjectHook *_hook) |
| SerializingObjectHook * | hook () |
Protected Member Functions | |
| void | modelChanged () override |
| Register that the model of this track View has changed. | |
| void | saveSettings (QDomDocument &doc, QDomElement &element) override |
| void | loadSettings (const QDomElement &element) override |
| QString | nodeName () const override |
| void | dragEnterEvent (QDragEnterEvent *dee) override |
| Start a drag event on this track View. | |
| void | dropEvent (QDropEvent *de) override |
| Accept a drop event on this track View. | |
| void | mousePressEvent (QMouseEvent *me) override |
| Handle a mouse press event on this track View. | |
| void | mouseMoveEvent (QMouseEvent *me) override |
| Handle a mouse move event on this track View. | |
| void | mouseReleaseEvent (QMouseEvent *me) override |
| Handle a mouse release event on this track View. | |
| void | wheelEvent (QWheelEvent *we) override |
| void | paintEvent (QPaintEvent *pe) override |
| Repaint this track View. | |
| void | resizeEvent (QResizeEvent *re) override |
| Resize this track View. | |
| Protected Member Functions inherited from lmms::gui::ModelView | |
| QWidget * | widget () |
| virtual void | doConnections () |
| Protected Member Functions inherited from lmms::JournallingObject | |
| void | changeID (jo_id_t _id) |
Private Types | |
| enum class | Action { None , Move , Resize } |
Private Slots | |
| void | createClipView (lmms::Clip *clip) |
| Create a Clip View in this track View. | |
| void | muteChanged () |
| void | onTrackGripGrabbed () |
| void | onTrackGripReleased () |
Private Member Functions | |
| void | resizeToHeight (int height) |
| virtual FadeButton * | getActivityIndicator () |
| void | setIndicatorMute (FadeButton *indicator, bool muted) |
Friends | |
| class | TrackLabelButton |
|
strongprivate |
| lmms::gui::TrackView::TrackView | ( | Track * | track, |
| TrackContainerView * | tcv ) |
Create a new track View.
The track View is handles the actual display of the track, including displaying its various widgets and the track segments.
| track | The track to display. |
| tcv | The track Container View for us to be displayed in. |
|
overridedefault |
|
virtualslot |
Close this track View.
Reimplemented in lmms::gui::PatternTrackView.
|
privateslot |
|
virtual |
Create a menu for assigning/creating channels for this track.
Currently instrument track and sample track supports it
Reimplemented in lmms::gui::InstrumentTrackView, and lmms::gui::SampleTrackView.
|
overrideprotected |
Start a drag event on this track View.
| dee | The DragEnterEvent to start. |
|
overrideprotected |
Accept a drop event on this track View.
We only accept drop events that are of the same type as this track. If so, we decode the data from the drop event by just feeding it back into the engine as a state.
| de | The DropEvent to handle. |
|
inlineprivatevirtual |
Reimplemented in lmms::gui::InstrumentTrackView, and lmms::gui::SampleTrackView.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineoverrideprotectedvirtual |
Implements lmms::SerializingObject.
|
overrideprotectedvirtual |
Register that the model of this track View has changed.
Reimplemented from lmms::gui::ModelView.
|
overrideprotected |
Handle a mouse move event on this track View.
If this track container supports rubber band selection, let the widget handle that and don't bother with any other handling.
Otherwise if we've started the move process (from mousePressEvent()) then move ourselves into that position, reordering the track list with moveTrackViewUp() and moveTrackViewDown() to suit. We make a note of this in the undo journal in case the user wants to undo this move.
Likewise if we've started a resize process, handle this too, making sure that we never go below the minimum track height.
| me | The MouseEvent to handle. |
|
overrideprotected |
Handle a mouse press event on this track View.
| me | The MouseEvent to handle. |
|
overrideprotected |
Handle a mouse release event on this track View.
| me | The MouseEvent to handle. |
|
privateslot |
|
inlineoverrideprotectedvirtual |
Implements lmms::SerializingObject.
|
privateslot |
|
privateslot |
|
overrideprotected |
Repaint this track View.
| pe | The PaintEvent to start. |
|
overrideprotected |
Resize this track View.
| re | The Resize Event to handle. |
|
private |
|
inlineoverrideprotectedvirtual |
Implements lmms::SerializingObject.
|
private |
|
inline |
|
virtual |
Update this track View and all its content objects.
|
overrideprotected |
|
friend |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |