/* * CenterInBoxAction.hpp * * Created on: May 8, 2010 * Author: heber */ #ifndef CENTERINBOXACTION_HPP_ #define CENTERINBOXACTION_HPP_ #include "Actions/Action.hpp" #include "Box.hpp" void WorldCenterInBox(Box &_box); class WorldCenterInBoxAction : public Action { friend void WorldCenterInBox(Box &_box); public: WorldCenterInBoxAction(); virtual ~WorldCenterInBoxAction(); bool canUndo(); bool shouldUndo(); virtual const std::string getName(); protected: virtual Dialog * fillDialog(Dialog *dialog); private: virtual Action::state_ptr performCall(); virtual Action::state_ptr performUndo(Action::state_ptr); virtual Action::state_ptr performRedo(Action::state_ptr); static const char NAME[]; }; #endif /* CENTERINBOXACTION_HPP_ */