DISPLACE
1.0
A spatial model of fisheries to help sustainable fishing and maritime spatial planning
|
#include <setnodevaluecommand.h>
Public Member Functions | |
SetNodeValueCommand (QList< QGraphicsItem * > items, double new_value) | |
virtual | ~SetNodeValueCommand () |
virtual bool | execute () |
Execute the command. More... | |
virtual bool | undo () |
Undo the command. More... | |
virtual bool | redo () |
Redo the command. More... | |
![]() | |
Command () | |
virtual | ~Command () |
SetNodeValueCommand::SetNodeValueCommand | ( | QList< QGraphicsItem * > | items, |
double | new_value | ||
) |
|
virtual |
|
virtual |
Execute the command.
If the command executed correctly, the client will put the command in the Undo list.
Implements Command.
|
virtual |
Redo the command.
If the command redid correctly, the client will move it from the redo list to the undo list.
Implements Command.
|
virtual |
Undo the command.
If the command undid correctly, the client will move the command in the Redo list. Otherwise the entire Undo list must be cleaned.
Implements Command.