Ejemplo n.º 1
0
void CommandManager::redo()
{
  if(can_redo())
  {
    Command_CPtr c = m_undone.back();
    m_undone.pop_back();
    m_executed.push_back(c);
    c->execute();
  }
}
Ejemplo n.º 2
0
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";
}
Ejemplo n.º 3
0
/**
 * \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()