Adds feature to merge Instrument Track patterns (#5700)

This commit is contained in:
IanCaio
2020-12-12 11:33:45 -03:00
committed by GitHub
parent 28ee260e28
commit 3d7d0051f3
6 changed files with 134 additions and 2 deletions

View File

@@ -176,6 +176,7 @@ public:
void setMutedNoteBorderColor(QColor const & color) { m_mutedNoteBorderColor = color; }
public slots:
Pattern* getPattern();
void update() override;

View File

@@ -111,6 +111,10 @@ public:
// some metadata to be written to the clipboard.
static void remove( QVector<TrackContentObjectView *> tcovs );
static void toggleMute( QVector<TrackContentObjectView *> tcovs );
static void mergeTCOs(QVector<TrackContentObjectView*> tcovs);
// Returns true if selection can be merged and false if not
static bool canMergeSelection(QVector<TrackContentObjectView*> tcovs);
QColor getColorForDisplay( QColor );
@@ -129,7 +133,8 @@ protected:
Cut,
Copy,
Paste,
Mute
Mute,
Merge
};
virtual void constructContextMenu( QMenu * )