diff options
author | Florian Jung <flo@windfisch.org> | 2011-05-22 13:24:13 +0000 |
---|---|---|
committer | Florian Jung <flo@windfisch.org> | 2011-05-22 13:24:13 +0000 |
commit | 1701c520500b9198c1aaca29e7bdcd891cb0e971 (patch) | |
tree | 33c78a9e7b1aeb82e334dca9c2d319efe80610d3 /muse2/muse/undo.h | |
parent | de003aced9a2aa2141258ac97701e438220740f0 (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.h | 13 |
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> { |