diff options
author | Robert Jonsson <spamatica@gmail.com> | 2011-09-15 12:14:55 +0000 |
---|---|---|
committer | Robert Jonsson <spamatica@gmail.com> | 2011-09-15 12:14:55 +0000 |
commit | b0546e5e7f7044019892543c6c82029db8d564a7 (patch) | |
tree | 1b96a6260900f3fbf3513fb48a5a72aa89052dc8 /attic/muse2-oom/muse2/muse/undo.h | |
parent | 583c73d1a07154d3d2672d65d8cce6495f490454 (diff) |
moved attic to a branch of it's own
Diffstat (limited to 'attic/muse2-oom/muse2/muse/undo.h')
-rw-r--r-- | attic/muse2-oom/muse2/muse/undo.h | 110 |
1 files changed, 0 insertions, 110 deletions
diff --git a/attic/muse2-oom/muse2/muse/undo.h b/attic/muse2-oom/muse2/muse/undo.h deleted file mode 100644 index 896b8a94..00000000 --- a/attic/muse2-oom/muse2/muse/undo.h +++ /dev/null @@ -1,110 +0,0 @@ -//========================================================= -// MusE -// Linux Music Editor -// $Id: undo.h,v 1.6.2.5 2009/05/24 21:43:44 terminator356 Exp $ -// -// (C) Copyright 1999/2000 Werner Schweer (ws@seh.de) -//========================================================= - -#ifndef __UNDO_H__ -#define __UNDO_H__ - -#include <list> - -#include "event.h" -#include "marker/marker.h" - -class QString; - -class Track; -class TEvent; -class SigEvent; -class Part; - -extern std::list<QString> temporaryWavFiles; //!< Used for storing all tmp-files, for cleanup on shutdown -//--------------------------------------------------------- -// UndoOp -//--------------------------------------------------------- - -struct UndoOp { - enum UndoType { - AddTrack, DeleteTrack, ModifyTrack, - AddPart, DeletePart, ModifyPart, - AddEvent, DeleteEvent, ModifyEvent, - AddTempo, DeleteTempo, - AddSig, DeleteSig, - SwapTrack, - ModifyClip, - ModifyMarker, - AddTrackView, DeleteTrackView, ModifyTrackView - }; - UndoType type; - - union { - struct { - int a; - int b; - int c; - }; - struct { - Track* oTrack; - Track* nTrack; - int trackno; - }; - struct { - Part* oPart; - Part* nPart; - }; - struct { - Part* part; - }; - struct { - SigEvent* nSignature; - SigEvent* oSignature; - }; - struct { - int channel; - int ctrl; - int oVal; - int nVal; - }; - struct { - int startframe; //!< Start frame of changed data - int endframe; //!< End frame of changed data - const char* filename; //!< The file that is changed - const char* tmpwavfile; //!< The file with the changed data - }; - struct { - Marker* realMarker; - Marker* copyMarker; - }; - struct { - int d; - int e; - int f; - }; - }; - Event oEvent; - Event nEvent; - bool doCtrls; - bool doClones; - const char* typeName(); - void dump(); - }; - -class Undo : public std::list<UndoOp> { - void undoOp(UndoOp::UndoType, int data); - }; - -typedef Undo::iterator iUndoOp; -typedef Undo::reverse_iterator riUndoOp; - -class UndoList : public std::list<Undo> { - public: - void clearDelete(); - }; - -typedef UndoList::iterator iUndo; - - -#endif // __UNDO_H__ |