|
Quantum GIS API Documentation
master-ce49b66
|
#include <qgsaddremovemultiframecommand.h>
Collaboration diagram for QgsAddRemoveMultiFrameCommand: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 () | |
| bool | checkFirstRun () |
| void | switchState () |
Private Attributes | |
| QgsComposition * | mComposition |
| bool | mFirstRun |
| QgsComposerMultiFrame * | mMultiFrame |
| State | mState |
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 23 of file qgsaddremovemultiframecommand.cpp.
Definition at line 32 of file qgsaddremovemultiframecommand.cpp.
References mMultiFrame, mState, and Removed.
Definition at line 28 of file qgsaddremovemultiframecommand.cpp.
| bool QgsAddRemoveMultiFrameCommand::checkFirstRun | ( | ) | [private] |
Definition at line 75 of file qgsaddremovemultiframecommand.cpp.
References mFirstRun.
| void QgsAddRemoveMultiFrameCommand::redo | ( | ) |
Definition at line 40 of file qgsaddremovemultiframecommand.cpp.
References checkFirstRun(), and switchState().
| void QgsAddRemoveMultiFrameCommand::switchState | ( | ) | [private] |
Definition at line 58 of file qgsaddremovemultiframecommand.cpp.
References Added, QgsComposition::addMultiFrame(), mComposition, mMultiFrame, mState, Removed, and QgsComposition::removeMultiFrame().
| void QgsAddRemoveMultiFrameCommand::undo | ( | ) |
Definition at line 49 of file qgsaddremovemultiframecommand.cpp.
References checkFirstRun(), and switchState().
Definition at line 49 of file qgsaddremovemultiframecommand.h.
Referenced by switchState().
bool QgsAddRemoveMultiFrameCommand::mFirstRun [private] |
Definition at line 51 of file qgsaddremovemultiframecommand.h.
Referenced by checkFirstRun().
Definition at line 48 of file qgsaddremovemultiframecommand.h.
Referenced by switchState(), and ~QgsAddRemoveMultiFrameCommand().
State QgsAddRemoveMultiFrameCommand::mState [private] |
Definition at line 50 of file qgsaddremovemultiframecommand.h.
Referenced by switchState(), and ~QgsAddRemoveMultiFrameCommand().