QGIS/python/core/composer/qgsaddremoveitemcommand.sip
Juergen E. Fischer a90be95f7b sip sync
2016-02-14 03:50:49 +01:00

25 lines
617 B
Plaintext

/** A composer command class for adding / removing composer items. If mState == Removed, the command owns the item*/
class QgsAddRemoveItemCommand: QObject, QUndoCommand
{
%TypeHeaderCode
#include "qgsaddremoveitemcommand.h"
%End
public:
enum State
{
Added,
Removed
};
QgsAddRemoveItemCommand( State s, QgsComposerItem* item, QgsComposition* c, const QString& text, QUndoCommand* parent /TransferThis/ = 0 );
~QgsAddRemoveItemCommand();
void redo();
void undo();
signals:
void itemAdded( QgsComposerItem* item );
void itemRemoved( QgsComposerItem* item );
};