|
Quantum GIS API Documentation
master-ce49b66
|
#include <qgscomposermultiframecommand.h>
Collaboration diagram for QgsComposerMultiFrameCommand:Public Member Functions | |
| QgsComposerMultiFrameCommand (QgsComposerMultiFrame *multiFrame, const QString &text, QUndoCommand *parent=0) | |
| ~QgsComposerMultiFrameCommand () | |
| bool | containsChange () const |
| Returns true if previous state and after state are valid and different. | |
| void | redo () |
| void | saveAfterState () |
| void | savePreviousState () |
| void | undo () |
Private Member Functions | |
| QgsComposerMultiFrameCommand () | |
| bool | checkFirstRun () |
| void | restoreState (QDomDocument &stateDoc) |
| void | saveState (QDomDocument &stateDoc) |
Private Attributes | |
| QDomDocument | mAfterState |
| bool | mFirstRun |
| QgsComposerMultiFrame * | mMultiFrame |
| QDomDocument | mPreviousState |
Definition at line 26 of file qgscomposermultiframecommand.h.
| QgsComposerMultiFrameCommand::QgsComposerMultiFrameCommand | ( | QgsComposerMultiFrame * | multiFrame, |
| const QString & | text, | ||
| QUndoCommand * | parent = 0 |
||
| ) |
Definition at line 21 of file qgscomposermultiframecommand.cpp.
Definition at line 30 of file qgscomposermultiframecommand.cpp.
Definition at line 26 of file qgscomposermultiframecommand.cpp.
| bool QgsComposerMultiFrameCommand::checkFirstRun | ( | ) | [private] |
Definition at line 77 of file qgscomposermultiframecommand.cpp.
References mFirstRun.
Referenced by redo().
| bool QgsComposerMultiFrameCommand::containsChange | ( | ) | const |
Returns true if previous state and after state are valid and different.
Definition at line 87 of file qgscomposermultiframecommand.cpp.
References mAfterState, and mPreviousState.
Referenced by QgsComposition::endMultiFrameCommand().
| void QgsComposerMultiFrameCommand::redo | ( | ) |
Definition at line 39 of file qgscomposermultiframecommand.cpp.
References checkFirstRun(), mAfterState, and restoreState().
| void QgsComposerMultiFrameCommand::restoreState | ( | QDomDocument & | stateDoc | ) | [private] |
Definition at line 69 of file qgscomposermultiframecommand.cpp.
References mMultiFrame, and QgsComposerMultiFrame::readXML().
Definition at line 53 of file qgscomposermultiframecommand.cpp.
References mAfterState, and saveState().
Referenced by QgsComposition::endMultiFrameCommand().
Definition at line 48 of file qgscomposermultiframecommand.cpp.
References mPreviousState, and saveState().
Referenced by QgsComposition::beginMultiFrameCommand().
| void QgsComposerMultiFrameCommand::saveState | ( | QDomDocument & | stateDoc | ) | [private] |
Definition at line 58 of file qgscomposermultiframecommand.cpp.
References mMultiFrame, and QgsComposerMultiFrame::writeXML().
Referenced by saveAfterState(), and savePreviousState().
| void QgsComposerMultiFrameCommand::undo | ( | ) |
Definition at line 34 of file qgscomposermultiframecommand.cpp.
References mPreviousState, and restoreState().
QDomDocument QgsComposerMultiFrameCommand::mAfterState [private] |
Definition at line 45 of file qgscomposermultiframecommand.h.
Referenced by containsChange(), redo(), and saveAfterState().
bool QgsComposerMultiFrameCommand::mFirstRun [private] |
Definition at line 47 of file qgscomposermultiframecommand.h.
Referenced by checkFirstRun().
Definition at line 42 of file qgscomposermultiframecommand.h.
Referenced by restoreState(), and saveState().
QDomDocument QgsComposerMultiFrameCommand::mPreviousState [private] |
Definition at line 44 of file qgscomposermultiframecommand.h.
Referenced by containsChange(), savePreviousState(), and undo().