summaryrefslogtreecommitdiff
path: root/muse2/muse/undo.h
diff options
context:
space:
mode:
authorFlorian Jung <flo@windfisch.org>2011-05-22 13:24:13 +0000
committerFlorian Jung <flo@windfisch.org>2011-05-22 13:24:13 +0000
commit1701c520500b9198c1aaca29e7bdcd891cb0e971 (patch)
tree33c78a9e7b1aeb82e334dca9c2d319efe80610d3 /muse2/muse/undo.h
parentde003aced9a2aa2141258ac97701e438220740f0 (diff)
changed Song::undoOp(foo) to Song::addUndo(UndoOp(foo)).
changed all these undoOps into a UndoOp-constructor. should not have affected muse's behaviour. should not introduce bugs or fix stuff.
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 eb5600ef..b048b9e6 100644
--- a/muse2/muse/undo.h
+++ b/muse2/muse/undo.h
@@ -83,8 +83,21 @@ struct UndoOp {
Event nEvent;
bool doCtrls;
bool doClones;
+
const char* typeName();
void dump();
+
+ UndoOp(UndoType type, int a, int b, int c=0);
+ UndoOp(UndoType type, int n, Track* oldTrack, Track* newTrack);
+ UndoOp(UndoType type, int n, Track* track);
+ UndoOp(UndoType type, Part* part);
+ UndoOp(UndoType type, Event& oev, Event& nev, Part* part, bool doCtrls, bool doClones);
+ UndoOp(UndoType type, Event& nev, Part* part, bool doCtrls, bool doClones);
+ UndoOp(UndoType type, Part* oPart, Part* nPart, bool doCtrls, bool doClones);
+ UndoOp(UndoType type, int c, int ctrl, int ov, int nv);
+ 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);
};
class Undo : public std::list<UndoOp> {