QGIS API Documentation  2.18.21-Las Palmas (9fba24a)
Public Types | Public Member Functions | List of all members
QgsAddRemoveMultiFrameCommand Class Reference

#include <qgsaddremovemultiframecommand.h>

Inheritance diagram for QgsAddRemoveMultiFrameCommand:
Inheritance graph
[legend]

Public Types

enum  State { Added = 0, Removed }
 

Public Member Functions

 QgsAddRemoveMultiFrameCommand (State s, QgsComposerMultiFrame *multiFrame, QgsComposition *c, const QString &text, QUndoCommand *parent=nullptr)
 
 ~QgsAddRemoveMultiFrameCommand ()
 
void redo () override
 
void undo () override
 
- Public Member Functions inherited from QUndoCommand
 QUndoCommand (QUndoCommand *parent)
 
 QUndoCommand (const QString &text, QUndoCommand *parent)
 
virtual ~QUndoCommand ()
 
QString actionText () const
 
const QUndoCommandchild (int index) const
 
int childCount () const
 
virtual int id () const
 
virtual bool mergeWith (const QUndoCommand *command)
 
void setText (const QString &text)
 
QString text () const
 

Detailed Description

Definition at line 29 of file qgsaddremovemultiframecommand.h.

Member Enumeration Documentation

◆ State

Enumerator
Added 
Removed 

Definition at line 33 of file qgsaddremovemultiframecommand.h.

Constructor & Destructor Documentation

◆ QgsAddRemoveMultiFrameCommand()

QgsAddRemoveMultiFrameCommand::QgsAddRemoveMultiFrameCommand ( State  s,
QgsComposerMultiFrame multiFrame,
QgsComposition c,
const QString text,
QUndoCommand parent = nullptr 
)

Definition at line 24 of file qgsaddremovemultiframecommand.cpp.

◆ ~QgsAddRemoveMultiFrameCommand()

QgsAddRemoveMultiFrameCommand::~QgsAddRemoveMultiFrameCommand ( )

Definition at line 41 of file qgsaddremovemultiframecommand.cpp.

Member Function Documentation

◆ redo()

void QgsAddRemoveMultiFrameCommand::redo ( )
overridevirtual

Reimplemented from QUndoCommand.

Definition at line 49 of file qgsaddremovemultiframecommand.cpp.

◆ undo()

void QgsAddRemoveMultiFrameCommand::undo ( )
overridevirtual

Reimplemented from QUndoCommand.

Definition at line 58 of file qgsaddremovemultiframecommand.cpp.


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