From 013294f58a6433671da3b34775de5a3a7ea91464 Mon Sep 17 00:00:00 2001 From: Florian Jung Date: Mon, 19 Aug 2013 22:10:22 +0200 Subject: some const-correctness. Part interface overhaul. various fixes. --- muse2/muse/undo.h | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'muse2/muse/undo.h') diff --git a/muse2/muse/undo.h b/muse2/muse/undo.h index 570fd5ab..9997d4cb 100644 --- a/muse2/muse/undo.h +++ b/muse2/muse/undo.h @@ -67,11 +67,11 @@ struct UndoOp { int c; }; struct { - Track* track; + const Track* track; int trackno; }; struct { - Part* part; + const Part* part; unsigned old_partlen_or_tick; // FIXME FINDMICHJETZT XTicks!! unsigned new_partlen_or_tick; }; @@ -88,11 +88,11 @@ struct UndoOp { const char* tmpwavfile; //!< The file with the changed data }; struct { - Marker* realMarker; + Marker* realMarker; Marker* copyMarker; }; struct { - Track* _propertyTrack; + const Track* _propertyTrack; int _oldPropValue; int _newPropValue; }; @@ -110,15 +110,15 @@ struct UndoOp { UndoOp(); UndoOp(UndoType type, int a, int b, int c=0); - UndoOp(UndoType type, int n, Track* track); - UndoOp(UndoType type, 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, Part* part, const char* old_name, const char* new_name); - UndoOp(UndoType type, const Event& oev, const Event& nev, Part* part, bool doCtrls, bool doClones); - UndoOp(UndoType type, const Event& nev, Part* part, bool doCtrls, bool doClones); + 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 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 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, const Track* track, const char* old_name, const char* new_name); + UndoOp(UndoType type, const Track* track, int old_chan, int new_chan); }; class Undo : public std::list { -- cgit v1.2.3