Changeset cd79d0 for src/Actions
- Timestamp:
 - Apr 23, 2021, 8:55:32 PM (5 years ago)
 - 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)
 - Location:
 - src/Actions
 - Files:
 - 
      
- 3 edited
 
- 
          
  ActionHistory.cpp (modified) (2 diffs)
 - 
          
  RedoAction.cpp (modified) (1 diff)
 - 
          
  UndoAction.cpp (modified) (1 diff)
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
      
src/Actions/ActionHistory.cpp
r0a1461 rcd79d0 63 63 //ASSERT(history.size(),"Undo performed when the undo-queue was empty"); 64 64 HistoryElement elem = history.back(); 65 LOG(1, "INFO: Undoing action " << elem.action->getName()); 65 66 history.pop_back(); 66 67 ActionState::ptr newState = elem.action->undo(elem.state); … … 76 77 //ASSERT(yrotsih.size(),"Redo performed when the redo-queue was empty"); 77 78 HistoryElement elem = yrotsih.back(); 79 LOG(1, "INFO: Redoing action " << elem.action->getName()); 78 80 yrotsih.pop_back(); 79 81 ActionState::ptr oldState = elem.action->redo(elem.state);  - 
      
src/Actions/RedoAction.cpp
r0a1461 rcd79d0 52 52 /** =========== define the function ====================== */ 53 53 ActionState::ptr RedoAction::performCall(){ 54 std::cout << "Redo" << std::endl;54 // std::cout << "Redo" << std::endl; 55 55 ActionQueue::getInstance().redoLast(); 56 56 return Action::success;  - 
      
src/Actions/UndoAction.cpp
r0a1461 rcd79d0 51 51 /** =========== define the function ====================== */ 52 52 ActionState::ptr UndoAction::performCall(){ 53 std::cout << "Undo" << std::endl;53 // std::cout << "Undo" << std::endl; 54 54 ActionQueue::getInstance().undoLast(); 55 55 return Action::success;  
  Note:
 See   TracChangeset
 for help on using the changeset viewer.
  