QGIS API Documentation  2.99.0-Master (6a61179)
Public Types | Signals | Public Member Functions | List of all members
QgsAddRemoveItemCommand Class Reference

A composer command class for adding / removing composer items. More...

#include <qgsaddremoveitemcommand.h>

Inheritance diagram for QgsAddRemoveItemCommand:
Inheritance graph
[legend]

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=nullptr)
 
 ~QgsAddRemoveItemCommand ()
 
void redo () override
 
void undo () override
 

Detailed Description

A composer command class for adding / removing composer items.

If mState == Removed, the command owns the item

Definition at line 28 of file qgsaddremoveitemcommand.h.

Member Enumeration Documentation

§ State

Enumerator
Added 
Removed 

Definition at line 34 of file qgsaddremoveitemcommand.h.

Constructor & Destructor Documentation

§ QgsAddRemoveItemCommand()

QgsAddRemoveItemCommand::QgsAddRemoveItemCommand ( State  s,
QgsComposerItem item,
QgsComposition c,
const QString &  text,
QUndoCommand *  parent = nullptr 
)

Definition at line 24 of file qgsaddremoveitemcommand.cpp.

§ ~QgsAddRemoveItemCommand()

QgsAddRemoveItemCommand::~QgsAddRemoveItemCommand ( )

Definition at line 29 of file qgsaddremoveitemcommand.cpp.

Member Function Documentation

§ itemAdded

void QgsAddRemoveItemCommand::itemAdded ( QgsComposerItem item)
signal

§ itemRemoved

void QgsAddRemoveItemCommand::itemRemoved ( QgsComposerItem item)
signal

§ redo()

void QgsAddRemoveItemCommand::redo ( )
override

Definition at line 37 of file qgsaddremoveitemcommand.cpp.

§ undo()

void QgsAddRemoveItemCommand::undo ( )
override

Definition at line 48 of file qgsaddremoveitemcommand.cpp.


The documentation for this class was generated from the following files: