QGIS API Documentation
2.8.2-Wien
|
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 () override |
void | undo () override |
A composer command class for adding / removing composer items.
If mState == Removed, the command owns the item
Definition at line 26 of file qgsaddremoveitemcommand.h.
Definition at line 32 of file qgsaddremoveitemcommand.h.
QgsAddRemoveItemCommand::QgsAddRemoveItemCommand | ( | State | s, |
QgsComposerItem * | item, | ||
QgsComposition * | c, | ||
const QString & | text, | ||
QUndoCommand * | parent = 0 |
||
) |
Definition at line 24 of file qgsaddremoveitemcommand.cpp.
QgsAddRemoveItemCommand::~QgsAddRemoveItemCommand | ( | ) |
Definition at line 29 of file qgsaddremoveitemcommand.cpp.
|
signal |
|
signal |
|
override |
Definition at line 37 of file qgsaddremoveitemcommand.cpp.
|
override |
Definition at line 47 of file qgsaddremoveitemcommand.cpp.