Changeset cd79d0


Ignore:
Timestamp:
Apr 23, 2021, 8:55:32 PM (5 years ago)
Author:
Frederik Heber <frederik.heber@…>
Branches:
Candidate_v1.7.0, stable
Children:
5061d9
Parents:
0a1461
git-author:
Frederik Heber <frederik.heber@…> (04/02/21 09:00:00)
git-committer:
Frederik Heber <frederik.heber@…> (04/23/21 20:55:32)
Message:

Undo and Redo state debug info about involved action.

Location:
src/Actions
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • src/Actions/ActionHistory.cpp

    r0a1461 rcd79d0  
    6363  //ASSERT(history.size(),"Undo performed when the undo-queue was empty");
    6464  HistoryElement elem = history.back();
     65  LOG(1, "INFO: Undoing action " << elem.action->getName());
    6566  history.pop_back();
    6667  ActionState::ptr newState = elem.action->undo(elem.state);
     
    7677  //ASSERT(yrotsih.size(),"Redo performed when the redo-queue was empty");
    7778  HistoryElement elem = yrotsih.back();
     79  LOG(1, "INFO: Redoing action " << elem.action->getName());
    7880  yrotsih.pop_back();
    7981  ActionState::ptr oldState = elem.action->redo(elem.state);
  • src/Actions/RedoAction.cpp

    r0a1461 rcd79d0  
    5252/** =========== define the function ====================== */
    5353ActionState::ptr RedoAction::performCall(){
    54   std::cout << "Redo" << std::endl;
     54  // std::cout << "Redo" << std::endl;
    5555  ActionQueue::getInstance().redoLast();
    5656  return Action::success;
  • src/Actions/UndoAction.cpp

    r0a1461 rcd79d0  
    5151/** =========== define the function ====================== */
    5252ActionState::ptr UndoAction::performCall(){
    53   std::cout << "Undo" << std::endl;
     53  // std::cout << "Undo" << std::endl;
    5454  ActionQueue::getInstance().undoLast();
    5555  return Action::success;
Note: See TracChangeset for help on using the changeset viewer.