This command is used to delete an operationplan. More...
#include <model.h>
Public Member Functions | |
CommandDeleteOperationPlan (OperationPlan *o) | |
void | execute () |
void | undo () |
bool | undoable () const |
~CommandDeleteOperationPlan () |
This command is used to delete an operationplan.
The operationplan will be deleted when the command is created.
Definition at line 5308 of file model.h.
frepple::CommandDeleteOperationPlan::CommandDeleteOperationPlan | ( | OperationPlan * | o | ) |
Constructor.
Unlike most other commands the constructor already executes the deletion.
Definition at line 433 of file model/actions.cpp.
frepple::CommandDeleteOperationPlan::~CommandDeleteOperationPlan | ( | ) | [inline] |
void frepple::CommandDeleteOperationPlan::execute | ( | ) | [inline, virtual] |
This method is used to actually execute the action.
A couple of notes on how this method should be implemented by the subclasses:
Implements frepple::utils::Command.
void frepple::CommandDeleteOperationPlan::undo | ( | ) | [virtual] |
This method is undoing the state change of the execute() method.
Reversing the action is not possible for all commands. Command subclasses should override the undo() and undoable() method in case they are reversible.
A couple of notes on how this method should be implemented by the subclasses:
Reimplemented from frepple::utils::Command.
Definition at line 459 of file model/actions.cpp.
bool frepple::CommandDeleteOperationPlan::undoable | ( | ) | const [inline, virtual] |
Returns true if the execution of this command can be undone.
Reimplemented from frepple::utils::Command.