diff options
author | Tim E. Real <termtech@rogers.com> | 2012-08-04 22:14:50 +0000 |
---|---|---|
committer | Tim E. Real <termtech@rogers.com> | 2012-08-04 22:14:50 +0000 |
commit | 345fb0cc41b94b08134dc1f40020b4bf26e1d46b (patch) | |
tree | 78f6da3cf9cd64a84ead190e615a175a6a82242d /muse2/muse/undo.cpp | |
parent | 8ee7ac503d93d7a0b6cf3b49c3255d389ba59c17 (diff) |
REWRITE: Introducing: More bits for Song Changed SC_* flags.
Added MusECore::SongChangedFlags_t (in new type_defs.h file). Declared as int64 type.
All Song Changed parameters, handlers, connections, calls, colateral operations etc. now use
this new SongChangedFlags_t.
All the handlers are now ready for the code bodies to accept any extra flags, devs need not
do anything more than define new SC_* flags and write support inside the handlers.
Please beware these possible extra flags when writing songChanged handlers and setting updateFlags.
Diffstat (limited to 'muse2/muse/undo.cpp')
-rw-r--r-- | muse2/muse/undo.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/muse2/muse/undo.cpp b/muse2/muse/undo.cpp index 38582d58..45642652 100644 --- a/muse2/muse/undo.cpp +++ b/muse2/muse/undo.cpp @@ -217,7 +217,6 @@ void Song::startUndo() undoList->push_back(Undo()); updateFlags = 0; - updateFlags2 = 0; undoMode = true; } @@ -225,10 +224,9 @@ void Song::startUndo() // endUndo //--------------------------------------------------------- -void Song::endUndo(int flags, int flags2) +void Song::endUndo(SongChangedFlags_t flags) { updateFlags |= flags; - updateFlags2 |= flags2; endMsgCmd(); undoMode = false; } @@ -399,7 +397,6 @@ void Song::doUndo2() case UndoOp::ModifySongLen: _len=i->b; updateFlags = -1; // set all flags // TODO Refine this! Too many flags. // REMOVE Tim. - updateFlags2 = -1; // set all flags break; case UndoOp::ModifyClip: case UndoOp::ModifyMarker: @@ -510,7 +507,6 @@ void Song::doRedo2() case UndoOp::ModifySongLen: _len=i->a; updateFlags = -1; // set all flags // TODO Refine this! Too many flags. // REMOVE Tim. - updateFlags2 = -1; // set all flags break; case UndoOp::ModifyClip: case UndoOp::ModifyMarker: |