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:
regulus79
2025-07-02 18:04:16 -04:00
committed by GitHub
parent 186beec156
commit bbdfeff5e1
7 changed files with 75 additions and 1 deletions

View File

@@ -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;

View File

@@ -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 );
};

View File

@@ -100,6 +100,8 @@ public slots:
void updateComboBox();
void currentPatternChanged();
signals:
void trackUpdated();
private:
ComboBoxModel m_patternComboBoxModel;