void CommandManager::redo() { if(can_redo()) { Command_CPtr c = m_undone.back(); m_undone.pop_back(); m_executed.push_back(c); c->execute(); } }
void map_context::redo() { LOG_ED << "redo() beg, undo stack is " << undo_stack_.size() << ", redo stack " << redo_stack_.size() << "\n"; if (can_redo()) { perform_action_between_stacks(redo_stack_, undo_stack_); actions_since_save_++; } else { WRN_ED << "redo() called with an empty redo stack\n"; } LOG_ED << "redo() end, undo stack is " << undo_stack_.size() << ", redo stack " << redo_stack_.size() << "\n"; }
/** * \brief Get the description of the most recent action in the future. */ wxString bf::model_history::get_redo_description() const { CLAW_PRECOND( can_redo() ); return m_future.front()->get_description(); } // model_history::get_undo_description()