QGIS API Documentation
2.6.0-Brighton
|
A composer command class for adding / removing composer items. More...
#include <qgsaddremoveitemcommand.h>
Public Types | |
enum | State { Added = 0, Removed } |
Signals | |
void | itemAdded (QgsComposerItem *item) |
void | itemRemoved (QgsComposerItem *item) |
Public Member Functions | |
QgsAddRemoveItemCommand (State s, QgsComposerItem *item, QgsComposition *c, const QString &text, QUndoCommand *parent=0) | |
~QgsAddRemoveItemCommand () | |
void | redo () |
void | undo () |
A composer command class for adding / removing composer items.
If mState == Removed, the command owns the item
QgsAddRemoveItemCommand::QgsAddRemoveItemCommand | ( | State | s, |
QgsComposerItem * | item, | ||
QgsComposition * | c, | ||
const QString & | text, | ||
QUndoCommand * | parent = 0 |
||
) |
QgsAddRemoveItemCommand::~QgsAddRemoveItemCommand | ( | ) |
|
signal |
|
signal |
void QgsAddRemoveItemCommand::redo | ( | ) |
void QgsAddRemoveItemCommand::undo | ( | ) |