kig
KigCommand Class Reference
#include <kig_commands.h>

Detailed Description
a KigCommand represents almost every action performed in Kig.Used mainly in the Undo/Redo stuff...
Definition at line 44 of file kig_commands.h.
Public Member Functions | |
| KigCommand (KigPart &inDoc, const QString &name) | |
| ~KigCommand () | |
| void | addTask (KigCommandTask *) |
| void | redo () |
| void | undo () |
Static Public Member Functions | |
| static KigCommand * | addCommand (KigPart &doc, const std::vector< ObjectHolder * > &os) |
| static KigCommand * | addCommand (KigPart &doc, ObjectHolder *os) |
| static KigCommand * | removeCommand (KigPart &doc, const std::vector< ObjectHolder * > &os) |
| static KigCommand * | removeCommand (KigPart &doc, ObjectHolder *o) |
| static KigCommand * | changeCoordSystemCommand (KigPart &doc, CoordinateSystem *s) |
Constructor & Destructor Documentation
Definition at line 47 of file kig_commands.cpp.
| KigCommand::~KigCommand | ( | ) |
Definition at line 52 of file kig_commands.cpp.
Member Function Documentation
| KigCommand * KigCommand::addCommand | ( | KigPart & | doc, | |
| const std::vector< ObjectHolder * > & | os | |||
| ) | [static] |
To avoid confusion, this doesn't add a command to anything, this creates an AddCommand ;).
Definition at line 105 of file kig_commands.cpp.
| KigCommand * KigCommand::addCommand | ( | KigPart & | doc, | |
| ObjectHolder * | os | |||
| ) | [static] |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 85 of file kig_commands.cpp.
| KigCommand * KigCommand::removeCommand | ( | KigPart & | doc, | |
| const std::vector< ObjectHolder * > & | os | |||
| ) | [static] |
make sure that when you delete something, you are also deleting its parents.
This class assumes you've done that. KigDocument::delObjects() takes care of this for you.
Definition at line 92 of file kig_commands.cpp.
| KigCommand * KigCommand::removeCommand | ( | KigPart & | doc, | |
| ObjectHolder * | o | |||
| ) | [static] |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 78 of file kig_commands.cpp.
| KigCommand * KigCommand::changeCoordSystemCommand | ( | KigPart & | doc, | |
| CoordinateSystem * | s | |||
| ) | [static] |
This creates directly a command to change the coordinate system to s .
- See also:
- ChangeCoordSystemTask
Definition at line 117 of file kig_commands.cpp.
| void KigCommand::addTask | ( | KigCommandTask * | t | ) |
Definition at line 73 of file kig_commands.cpp.
| void KigCommand::redo | ( | ) |
| void KigCommand::undo | ( | ) |
The documentation for this class was generated from the following files:
KDE 4.0 API Reference