libs/flake
KoShapeCreateCommand Class Reference
The undo / redo command for creating shapes. More...
#include <KoShapeCreateCommand.h>
Inheritance diagram for KoShapeCreateCommand:

Public Member Functions | |
| KoShapeCreateCommand (KoShapeControllerBase *controller, KoShape *shape, QUndoCommand *parent=0) | |
| virtual | ~KoShapeCreateCommand () |
| void | redo () |
| void | undo () |
Detailed Description
The undo / redo command for creating shapes.
Definition at line 30 of file KoShapeCreateCommand.h.
Constructor & Destructor Documentation
| KoShapeCreateCommand::KoShapeCreateCommand | ( | KoShapeControllerBase * | controller, | |
| KoShape * | shape, | |||
| QUndoCommand * | parent = 0 | |||
| ) |
Command used on creation of new shapes.
- Parameters:
-
controller the controller used to add/remove the shape from shape the shape thats just been created. parent the parent command used for macro commands
Definition at line 48 of file KoShapeCreateCommand.cpp.
| KoShapeCreateCommand::~KoShapeCreateCommand | ( | ) | [virtual] |
Definition at line 55 of file KoShapeCreateCommand.cpp.
Member Function Documentation
| void KoShapeCreateCommand::redo | ( | ) |
redo the command
Reimplemented from QUndoCommand.
Definition at line 60 of file KoShapeCreateCommand.cpp.
| void KoShapeCreateCommand::undo | ( | ) |
revert the actions done in redo
Reimplemented from QUndoCommand.
Definition at line 73 of file KoShapeCreateCommand.cpp.
The documentation for this class was generated from the following files:
