| 55 | } |
| 56 | |
| 57 | void ActionManager::doAction(Action* _command) |
| 58 | { |
| 59 | removeRedo(); |
| 60 | |
| 61 | mActions.push_back(_command); |
| 62 | mCurrentAction++; |
| 63 | |
| 64 | updateMaxActions(); |
| 65 | |
| 66 | _command->doAction(); |
| 67 | |
| 68 | onChangeActions(); |
| 69 | } |
| 70 | |
| 71 | void ActionManager::undoAction() |
| 72 | { |