Changes in src/Actions/ActionHistory.cpp [047878:446bc1]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Actions/ActionHistory.cpp
r047878 r446bc1 67 67 68 68 /****************** Contained actions *******************/ 69 70 const char ActionHistory::UndoAction::NAME[] = "undo"; 71 69 72 ActionHistory::UndoAction::UndoAction(ActionHistory *_hist) : 70 Action( "Undo"),73 Action(NAME), 71 74 hist(_hist) 72 75 {} … … 92 95 93 96 Action::state_ptr ActionHistory::UndoAction::performCall(){ 97 std::cout << "Undo" << std::endl; 94 98 hist->undoLast(); 95 99 return Action::success; … … 106 110 } 107 111 112 const char ActionHistory::RedoAction::NAME[] = "redo"; 113 108 114 ActionHistory::RedoAction::RedoAction(ActionHistory *_hist) : 109 Action( "Redo"),115 Action(NAME), 110 116 hist(_hist) 111 117 {} … … 122 128 123 129 bool ActionHistory::RedoAction::isActive(){ 130 std::cout << "Redo" << std::endl; 124 131 return hist->hasRedo(); 125 132 }
Note:
See TracChangeset
for help on using the changeset viewer.