summaryrefslogtreecommitdiff
path: root/muse2/muse/undo.h
diff options
context:
space:
mode:
authorFlorian Jung <flo@windfisch.org>2012-01-03 19:13:48 +0000
committerFlorian Jung <flo@windfisch.org>2012-01-03 19:13:48 +0000
commit7993a73cece885bac45021dd021ac43f6f332040 (patch)
tree2f8296b31efa6d93cb53b8b735519163ec163a84 /muse2/muse/undo.h
parent845d28b2fba8f2c1d4211aee7beb5ab041315531 (diff)
parent1bc4ba9dfc00b6e7511fbf4765296a2002f83315 (diff)
merged with trunk
added "copy drummap" to duplicate track dialog
Diffstat (limited to 'muse2/muse/undo.h')
-rw-r--r--muse2/muse/undo.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/muse2/muse/undo.h b/muse2/muse/undo.h
index dffa1f55..3487da47 100644
--- a/muse2/muse/undo.h
+++ b/muse2/muse/undo.h
@@ -51,6 +51,7 @@ struct UndoOp {
AddTempo, DeleteTempo,
AddSig, DeleteSig,
AddKey, DeleteKey,
+ ModifyTrackName, ModifyTrackChannel,
SwapTrack,
ModifyClip,
ModifyMarker,
@@ -97,6 +98,16 @@ struct UndoOp {
Marker* realMarker;
Marker* copyMarker;
};
+ struct {
+ Track* _renamedTrack;
+ char* _oldName;
+ char* _newName;
+ };
+ struct {
+ Track* _propertyTrack;
+ int _oldPropValue;
+ int _newPropValue;
+ };
};
Event oEvent;
Event nEvent;
@@ -118,6 +129,8 @@ struct UndoOp {
UndoOp(UndoType type, SigEvent* oevent, SigEvent* nevent);
UndoOp(UndoType type, const char* changedFile, const char* changeData, int startframe, int endframe);
UndoOp(UndoType type, Marker* copyMarker, Marker* realMarker);
+ UndoOp(UndoType type, Track* track, const char* old_name, const char* new_name);
+ UndoOp(UndoType type, Track* track, int old_chan, int new_chan);
UndoOp(UndoType type);
};