diff options
author | Florian Jung <flo@windfisch.org> | 2013-08-20 17:31:43 +0200 |
---|---|---|
committer | Florian Jung <flo@windfisch.org> | 2013-08-20 17:31:43 +0200 |
commit | 02cba3c0588040450531b7d41690e31f4412be78 (patch) | |
tree | aaad063cf1d2f3795185706a4426fc4c7b7c3b62 /muse2/muse/undo.h | |
parent | 6204579f625a34cc0a70e09aa868f8e0edafea7e (diff) |
Event/Part selection now via UndoOp::Select*
additionally:
added Song::applyOperation()
removed unused param from (un)chainTrackParts
Diffstat (limited to 'muse2/muse/undo.h')
-rw-r--r-- | muse2/muse/undo.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/muse2/muse/undo.h b/muse2/muse/undo.h index 9997d4cb..6c372624 100644 --- a/muse2/muse/undo.h +++ b/muse2/muse/undo.h @@ -46,8 +46,8 @@ extern std::list<QString> temporaryWavFiles; //!< Used for storing all tmp-files struct UndoOp { enum UndoType { AddTrack, DeleteTrack, - AddPart, DeletePart, ModifyPartTick, ModifyPartLength, ModifyPartLengthFrames, /* FINDMICH FIXME frames are to be deprecated */ ModifyPartName, - AddEvent, DeleteEvent, ModifyEvent, + AddPart, DeletePart, ModifyPartTick, ModifyPartLength, ModifyPartLengthFrames, /* FINDMICH FIXME frames are to be deprecated */ ModifyPartName, SelectPart, + AddEvent, DeleteEvent, ModifyEvent, SelectEvent, AddTempo, DeleteTempo, AddSig, DeleteSig, AddKey, DeleteKey, @@ -102,6 +102,8 @@ struct UndoOp { char* _newName; Event oEvent; Event nEvent; + bool selected; + bool selected_old; bool doCtrls; bool doClones; @@ -113,8 +115,10 @@ struct UndoOp { UndoOp(UndoType type, int n, const Track* track); UndoOp(UndoType type, const Part* part, unsigned old_len_or_tick=-1, unsigned new_len_or_tick=-1, bool doCtrls=false, bool doClones=false); // FIXME these bools are UNUSED!!. XTICKS! UndoOp(UndoType type, const Part* part, const char* old_name, const char* new_name); + UndoOp(UndoType type, const Part* part, bool selected, bool selected_old); UndoOp(UndoType type, const Event& oev, const Event& nev, const Part* part, bool doCtrls, bool doClones); UndoOp(UndoType type, const Event& nev, const Part* part, bool doCtrls, bool doClones); + UndoOp(UndoType type, const Event& nev, bool selected, bool selected_old); UndoOp(UndoType type, const char* changedFile, const char* changeData, int startframe, int endframe); UndoOp(UndoType type, Marker* copyMarker, Marker* realMarker); UndoOp(UndoType type, const Track* track, const char* old_name, const char* new_name); |