QGIS API Documentation  2.5.0-Master
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules 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>

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=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: