Add Playhead and Timeline to Pattern Editor (#7794)
Adds a visual indicator to show the pattern editor playing, along with a timeline widget to allow the user to skip forward/backward in a pattern.
This commit is contained in:
@@ -97,6 +97,7 @@ private:
|
||||
QPixmap m_stepBtnOn200 = embed::getIconPixmap("step_btn_on_200");
|
||||
QPixmap m_stepBtnOff = embed::getIconPixmap("step_btn_off");
|
||||
QPixmap m_stepBtnOffLight = embed::getIconPixmap("step_btn_off_light");
|
||||
QPixmap m_stepBtnHighlight = embed::getIconPixmap("step_btn_highlight");
|
||||
|
||||
MidiClip* m_clip;
|
||||
QPixmap m_paintPixmap;
|
||||
|
||||
@@ -37,6 +37,7 @@ namespace gui
|
||||
{
|
||||
|
||||
class ComboBox;
|
||||
class TimeLineWidget;
|
||||
|
||||
|
||||
class PatternEditor : public TrackContainerView
|
||||
@@ -62,13 +63,19 @@ public slots:
|
||||
void addSampleTrack();
|
||||
void addAutomationTrack();
|
||||
void cloneClip();
|
||||
void updateMaxSteps();
|
||||
|
||||
protected slots:
|
||||
void dropEvent(QDropEvent * de ) override;
|
||||
void resizeEvent(QResizeEvent* de) override;
|
||||
void updatePosition();
|
||||
void updatePixelsPerBar();
|
||||
|
||||
private:
|
||||
PatternStore* m_ps;
|
||||
TimeLineWidget* m_timeLine;
|
||||
int m_trackHeadWidth;
|
||||
tick_t m_maxClipLength;
|
||||
void makeSteps( bool clone );
|
||||
};
|
||||
|
||||
|
||||
@@ -100,6 +100,8 @@ public slots:
|
||||
void updateComboBox();
|
||||
void currentPatternChanged();
|
||||
|
||||
signals:
|
||||
void trackUpdated();
|
||||
|
||||
private:
|
||||
ComboBoxModel m_patternComboBoxModel;
|
||||
|
||||
Reference in New Issue
Block a user