#include <TrackView.h>
|
| virtual bool | close () |
| | Close this track View.
|
◆ Action
| Enumerator |
|---|
| None | |
| Move | |
| Resize | |
◆ TrackView()
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.
- Parameters
-
| track | The track to display. |
| tcv | The track Container View for us to be displayed in. |
- Todo
- Is my description of these properties correct?
< The Track Container View's content widget.
< The model view of this track
< The track we're displaying
< The track Container View we're displayed in
< Our trackOperationsWidget
< Our trackSettingsWidget
< Our trackContentWidget
< The action we're currently performing
◆ ~TrackView()
| lmms::gui::TrackView::~TrackView |
( |
| ) |
|
|
overridedefault |
◆ close
| bool lmms::gui::TrackView::close |
( |
| ) |
|
|
virtualslot |
◆ createClipView
Create a Clip View in this track View.
- Parameters
-
| clip | the Clip to create the view for. |
- Todo
- is this a good description for what this method does?
◆ createMixerMenu()
| QMenu * lmms::gui::TrackView::createMixerMenu |
( |
QString | title, |
|
|
QString | newMixerLabel ) |
|
virtual |
◆ dragEnterEvent()
| void lmms::gui::TrackView::dragEnterEvent |
( |
QDragEnterEvent * | dee | ) |
|
|
overrideprotected |
Start a drag event on this track View.
- Parameters
-
| dee | the DragEnterEvent to start. |
◆ dropEvent()
| void lmms::gui::TrackView::dropEvent |
( |
QDropEvent * | de | ) |
|
|
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.
- Parameters
-
| de | the DropEvent to handle. |
◆ getActivityIndicator()
| virtual FadeButton * lmms::gui::TrackView::getActivityIndicator |
( |
| ) |
|
|
inlineprivatevirtual |
◆ getTrack() [1/2]
| Track * lmms::gui::TrackView::getTrack |
( |
| ) |
|
|
inline |
◆ getTrack() [2/2]
| const Track * lmms::gui::TrackView::getTrack |
( |
| ) |
const |
|
inline |
◆ getTrackContentWidget()
◆ getTrackOperationsWidget()
◆ getTrackSettingsWidget()
| QWidget * lmms::gui::TrackView::getTrackSettingsWidget |
( |
| ) |
|
|
inline |
◆ isMovingTrack()
| bool lmms::gui::TrackView::isMovingTrack |
( |
| ) |
const |
|
inline |
◆ loadSettings()
| void lmms::gui::TrackView::loadSettings |
( |
const QDomElement & | element | ) |
|
|
inlineoverrideprotectedvirtual |
◆ modelChanged()
| void lmms::gui::TrackView::modelChanged |
( |
| ) |
|
|
overrideprotectedvirtual |
◆ mouseMoveEvent()
| void lmms::gui::TrackView::mouseMoveEvent |
( |
QMouseEvent * | me | ) |
|
|
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.
- Parameters
-
| me | the MouseEvent to handle. |
◆ mousePressEvent()
| void lmms::gui::TrackView::mousePressEvent |
( |
QMouseEvent * | me | ) |
|
|
overrideprotected |
Handle a mouse press 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.
If the left mouse button is pressed, we handle two things. If SHIFT is pressed, then we resize vertically. Otherwise we start the process of moving this track to a new position.
Otherwise we let the widget handle the mouse event as normal.
- Parameters
-
| me | the MouseEvent to handle. |
◆ mouseReleaseEvent()
| void lmms::gui::TrackView::mouseReleaseEvent |
( |
QMouseEvent * | me | ) |
|
|
overrideprotected |
Handle a mouse release event on this track View.
- Parameters
-
| me | the MouseEvent to handle. |
◆ muteChanged
| void lmms::gui::TrackView::muteChanged |
( |
| ) |
|
|
privateslot |
◆ nodeName()
| QString lmms::gui::TrackView::nodeName |
( |
void | | ) |
const |
|
inlineoverrideprotectedvirtual |
◆ onTrackGripGrabbed
| void lmms::gui::TrackView::onTrackGripGrabbed |
( |
| ) |
|
|
privateslot |
◆ onTrackGripReleased
| void lmms::gui::TrackView::onTrackGripReleased |
( |
| ) |
|
|
privateslot |
◆ paintEvent()
| void lmms::gui::TrackView::paintEvent |
( |
QPaintEvent * | pe | ) |
|
|
overrideprotected |
Repaint this track View.
- Parameters
-
| pe | the PaintEvent to start. |
◆ resizeEvent()
| void lmms::gui::TrackView::resizeEvent |
( |
QResizeEvent * | re | ) |
|
|
overrideprotected |
Resize this track View.
- Parameters
-
| re | the Resize Event to handle. |
◆ resizeToHeight()
| void lmms::gui::TrackView::resizeToHeight |
( |
int | height | ) |
|
|
private |
◆ saveSettings()
| void lmms::gui::TrackView::saveSettings |
( |
QDomDocument & | doc, |
|
|
QDomElement & | element ) |
|
inlineoverrideprotectedvirtual |
◆ setIndicatorMute()
| void lmms::gui::TrackView::setIndicatorMute |
( |
FadeButton * | indicator, |
|
|
bool | muted ) |
|
private |
◆ trackContainerView()
◆ update()
| void lmms::gui::TrackView::update |
( |
| ) |
|
|
virtual |
Update this track View and all its content objects.
◆ wheelEvent()
| void lmms::gui::TrackView::wheelEvent |
( |
QWheelEvent * | we | ) |
|
|
overrideprotected |
◆ TrackLabelButton
| friend class TrackLabelButton |
|
friend |
◆ m_action
| Action lmms::gui::TrackView::m_action |
|
private |
◆ m_track
| Track* lmms::gui::TrackView::m_track |
|
private |
◆ m_trackContainerView
◆ m_trackContentWidget
◆ m_trackOperationsWidget
◆ m_trackSettingsWidget
| QWidget lmms::gui::TrackView::m_trackSettingsWidget |
|
private |
The documentation for this class was generated from the following files:
- /home/runner/work/lmms-fork/lmms-fork/include/TrackView.h
- /home/runner/work/lmms-fork/lmms-fork/src/gui/tracks/TrackView.cpp