#include <TrackOperationsWidget.h>
◆ TrackOperationsWidget()
| lmms::gui::TrackOperationsWidget::TrackOperationsWidget |
( |
TrackView * | parent | ) |
|
Create a new trackOperationsWidget.
The trackOperationsWidget is the grip and the mute button of a track.
- Parameters
-
| parent | the trackView to contain this widget |
< The parent widget
< The parent track view
◆ ~TrackOperationsWidget()
| lmms::gui::TrackOperationsWidget::~TrackOperationsWidget |
( |
| ) |
|
|
overridedefault |
◆ clearTrack
| void lmms::gui::TrackOperationsWidget::clearTrack |
( |
| ) |
|
|
privateslot |
Clear this track - clears all Clips from the track.
◆ cloneTrack
| void lmms::gui::TrackOperationsWidget::cloneTrack |
( |
| ) |
|
|
privateslot |
◆ confirmRemoval()
| bool lmms::gui::TrackOperationsWidget::confirmRemoval |
( |
| ) |
|
|
protected |
Show a message box warning the user that this track is about to be closed.
◆ getTrackGrip()
| TrackGrip * lmms::gui::TrackOperationsWidget::getTrackGrip |
( |
| ) |
const |
|
inline |
◆ mousePressEvent()
| void lmms::gui::TrackOperationsWidget::mousePressEvent |
( |
QMouseEvent * | me | ) |
|
|
overrideprotected |
Respond to trackOperationsWidget mouse events.
If it's the left mouse button, and Ctrl is held down, and we're not a Pattern Editor track, then start a new drag event to copy this track.
Otherwise, ignore all other events.
- Parameters
-
| me | The mouse event to respond to. |
◆ paintEvent()
| void lmms::gui::TrackOperationsWidget::paintEvent |
( |
QPaintEvent * | pe | ) |
|
|
overrideprotected |
Repaint the trackOperationsWidget.
Only things that's done for now is to paint the background with the brush of the window from the palette.
◆ randomizeTrackColor
| void lmms::gui::TrackOperationsWidget::randomizeTrackColor |
( |
| ) |
|
|
privateslot |
◆ recordingOff
| void lmms::gui::TrackOperationsWidget::recordingOff |
( |
| ) |
|
|
privateslot |
◆ recordingOn
| void lmms::gui::TrackOperationsWidget::recordingOn |
( |
| ) |
|
|
privateslot |
◆ removeTrack
| void lmms::gui::TrackOperationsWidget::removeTrack |
( |
| ) |
|
|
privateslot |
Remove this track from the track list.
◆ resetClipColors
| void lmms::gui::TrackOperationsWidget::resetClipColors |
( |
| ) |
|
|
privateslot |
◆ resetTrackColor
| void lmms::gui::TrackOperationsWidget::resetTrackColor |
( |
| ) |
|
|
privateslot |
◆ selectTrackColor
| void lmms::gui::TrackOperationsWidget::selectTrackColor |
( |
| ) |
|
|
privateslot |
◆ toggleRecording
| void lmms::gui::TrackOperationsWidget::toggleRecording |
( |
bool | on | ) |
|
|
privateslot |
◆ trackRemovalScheduled
◆ updateMenu
| void lmms::gui::TrackOperationsWidget::updateMenu |
( |
| ) |
|
|
privateslot |
Update the trackOperationsWidget context menu.
For all track types, we have the Clone and Remove options. For instrument-tracks we also offer the MIDI-control-menu For automation tracks, extra options: turn on/off recording on all Clips (same should be added for sample tracks when sampletrack recording is implemented)
◆ TrackView
◆ m_muteBtn
◆ m_soloBtn
◆ m_trackGrip
| TrackGrip* lmms::gui::TrackOperationsWidget::m_trackGrip |
|
private |
◆ m_trackOps
| QPushButton* lmms::gui::TrackOperationsWidget::m_trackOps |
|
private |
◆ m_trackView
| TrackView* lmms::gui::TrackOperationsWidget::m_trackView |
|
private |
The documentation for this class was generated from the following files: