QGIS API Documentation
2.2.0-Valmiera
|
#include <qgsaddremovemultiframecommand.h>
Public Types | |
enum | State { Added = 0, Removed } |
Public Member Functions | |
QgsAddRemoveMultiFrameCommand (State s, QgsComposerMultiFrame *multiFrame, QgsComposition *c, const QString &text, QUndoCommand *parent=0) | |
~QgsAddRemoveMultiFrameCommand () | |
void | redo () |
void | undo () |
Private Member Functions | |
QgsAddRemoveMultiFrameCommand () | |
void | switchState () |
bool | checkFirstRun () |
Private Attributes | |
QgsComposerMultiFrame * | mMultiFrame |
QgsComposition * | mComposition |
State | mState |
bool | mFirstRun |
Definition at line 26 of file qgsaddremovemultiframecommand.h.
Definition at line 30 of file qgsaddremovemultiframecommand.h.
QgsAddRemoveMultiFrameCommand::QgsAddRemoveMultiFrameCommand | ( | State | s, |
QgsComposerMultiFrame * | multiFrame, | ||
QgsComposition * | c, | ||
const QString & | text, | ||
QUndoCommand * | parent = 0 |
||
) |
Definition at line 24 of file qgsaddremovemultiframecommand.cpp.
QgsAddRemoveMultiFrameCommand::~QgsAddRemoveMultiFrameCommand | ( | ) |
Definition at line 33 of file qgsaddremovemultiframecommand.cpp.
References mMultiFrame, mState, and Removed.
|
private |
Definition at line 29 of file qgsaddremovemultiframecommand.cpp.
|
private |
Definition at line 77 of file qgsaddremovemultiframecommand.cpp.
References mFirstRun.
void QgsAddRemoveMultiFrameCommand::redo | ( | ) |
Definition at line 41 of file qgsaddremovemultiframecommand.cpp.
References checkFirstRun(), and switchState().
|
private |
Definition at line 59 of file qgsaddremovemultiframecommand.cpp.
References Added, QgsComposition::addMultiFrame(), QgsProject::dirty(), QgsProject::instance(), mComposition, mMultiFrame, mState, Removed, and QgsComposition::removeMultiFrame().
void QgsAddRemoveMultiFrameCommand::undo | ( | ) |
Definition at line 50 of file qgsaddremovemultiframecommand.cpp.
References checkFirstRun(), and switchState().
|
private |
Definition at line 49 of file qgsaddremovemultiframecommand.h.
Referenced by switchState().
|
private |
Definition at line 51 of file qgsaddremovemultiframecommand.h.
Referenced by checkFirstRun().
|
private |
Definition at line 48 of file qgsaddremovemultiframecommand.h.
Referenced by switchState(), and ~QgsAddRemoveMultiFrameCommand().
|
private |
Definition at line 50 of file qgsaddremovemultiframecommand.h.
Referenced by switchState(), and ~QgsAddRemoveMultiFrameCommand().