QGIS API Documentation  2.6.0-Brighton
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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>

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 ()

Detailed Description

A composer command class for adding / removing composer items.

If mState == Removed, the command owns the item

Member Enumeration Documentation

Enumerator:
Added 
Removed 

Constructor & Destructor Documentation

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

Member Function Documentation

void QgsAddRemoveItemCommand::itemAdded ( QgsComposerItem item)
signal
void QgsAddRemoveItemCommand::itemRemoved ( QgsComposerItem item)
signal
void QgsAddRemoveItemCommand::redo ( )
void QgsAddRemoveItemCommand::undo ( )

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