kig
#include <kig_commands.h>
Public Member Functions | |
KigCommand (KigPart &inDoc, const QString &name) | |
~KigCommand () | |
void | addTask (KigCommandTask *) |
void | redo () |
void | undo () |
Public Member Functions inherited from QUndoCommand | |
QUndoCommand (QUndoCommand *parent) | |
QUndoCommand (const QString &text, QUndoCommand *parent) | |
virtual | ~QUndoCommand () |
QString | actionText () const |
const QUndoCommand * | child (int index) const |
int | childCount () const |
virtual int | id () const |
virtual bool | mergeWith (const QUndoCommand *command) |
void | setText (const QString &text) |
QString | text () const |
Static Public Member Functions | |
static KigCommand * | addCommand (KigPart &doc, const std::vector< ObjectHolder * > &os) |
static KigCommand * | addCommand (KigPart &doc, ObjectHolder *os) |
static KigCommand * | changeCoordSystemCommand (KigPart &doc, CoordinateSystem *s) |
static KigCommand * | removeCommand (KigPart &doc, const std::vector< ObjectHolder * > &os) |
static KigCommand * | removeCommand (KigPart &doc, ObjectHolder *o) |
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.
Constructor & Destructor Documentation
Definition at line 48 of file kig_commands.cpp.
KigCommand::~KigCommand | ( | ) |
Definition at line 53 of file kig_commands.cpp.
Member Function Documentation
|
static |
To avoid confusion, this doesn't add a command to anything, this creates an AddCommand ;)
Definition at line 106 of file kig_commands.cpp.
|
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 86 of file kig_commands.cpp.
void KigCommand::addTask | ( | KigCommandTask * | t | ) |
Definition at line 74 of file kig_commands.cpp.
|
static |
This creates directly a command to change the coordinate system to s
.
- See also
- ChangeCoordSystemTask
Definition at line 118 of file kig_commands.cpp.
|
virtual |
Reimplemented from QUndoCommand.
Definition at line 60 of file kig_commands.cpp.
|
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 93 of file kig_commands.cpp.
|
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 79 of file kig_commands.cpp.
|
virtual |
Reimplemented from QUndoCommand.
Definition at line 67 of file kig_commands.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:12:06 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.