diff options
author | Florian Jung <flo@windfisch.org> | 2013-08-28 00:49:49 +0200 |
---|---|---|
committer | Florian Jung <flo@windfisch.org> | 2013-08-28 00:50:24 +0200 |
commit | c5e6fd0f6dfbf18847b601668ba8c657d776da31 (patch) | |
tree | 32ce317253bb39b0928b521c33007f39cabd150d /muse2/muse/song.h | |
parent | 3c1ae69c8e4a679588d0db4886f21e150bae572e (diff) |
operations are now replicated for all clones. minor cleanups.
it compiles and seems to work again! :)
Diffstat (limited to 'muse2/muse/song.h')
-rw-r--r-- | muse2/muse/song.h | 8 |
1 files changed, 6 insertions, 2 deletions
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); |