From c5e6fd0f6dfbf18847b601668ba8c657d776da31 Mon Sep 17 00:00:00 2001 From: Florian Jung Date: Wed, 28 Aug 2013 00:49:49 +0200 Subject: operations are now replicated for all clones. minor cleanups. it compiles and seems to work again! :) --- muse2/muse/song.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'muse2/muse/song.h') diff --git a/muse2/muse/song.h b/muse2/muse/song.h index 6410084f..bc1aa9a1 100644 --- a/muse2/muse/song.h +++ b/muse2/muse/song.h @@ -171,7 +171,11 @@ class Song : public QObject { Song(const char* name = 0); ~Song(); - bool applyOperationGroup(Undo& group, bool doUndo=true); // group may be changed! cleanOperationGroup is called on group! + /** It is not allowed nor checked(!) to AddPart a clone, and + * to AddEvent/DeleteEvent/ModifyEvent/SelectEvent events which + * would need to be replicated to the newly added clone part! + */ + bool applyOperationGroup(Undo& group, bool doUndo=true); // group may be changed! prepareOperationGroup is called on group! bool applyOperation(const UndoOp& op, bool doUndo=true); /** this sends emits a signal to each MidiEditor or whoever is interested. @@ -424,7 +428,7 @@ class Song : public QObject { void setQuantize(bool val); void panic(); void seqSignal(int fd); - Track* addTrack(Undo& operations, Track::TrackType type, Track* insertAt = 0); + Track* addTrack(Track::TrackType type, Track* insertAt = 0); Track* addNewTrack(QAction* action, Track* insertAt = 0); void duplicateTracks(); QString getScriptPath(int id, bool delivered); -- cgit v1.2.3