QGIS API Documentation  master-6227475
QgsComposerMultiFrameCommand Class Reference

#include <qgscomposermultiframecommand.h>

+ Collaboration diagram for QgsComposerMultiFrameCommand:

List of all members.

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
QgsComposerMultiFramemMultiFrame
QDomDocument mPreviousState

Detailed Description

Definition at line 26 of file qgscomposermultiframecommand.h.


Constructor & Destructor Documentation

QgsComposerMultiFrameCommand::QgsComposerMultiFrameCommand ( QgsComposerMultiFrame multiFrame,
const QString &  text,
QUndoCommand *  parent = 0 
)

Definition at line 21 of file qgscomposermultiframecommand.cpp.


Member Function Documentation

Definition at line 77 of file qgscomposermultiframecommand.cpp.

References mFirstRun.

Referenced by redo().

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::restoreState ( QDomDocument &  stateDoc) [private]

Definition at line 69 of file qgscomposermultiframecommand.cpp.

References mMultiFrame, and QgsComposerMultiFrame::readXML().

Referenced by redo(), and undo().

void QgsComposerMultiFrameCommand::saveState ( QDomDocument &  stateDoc) [private]

Member Data Documentation

Definition at line 45 of file qgscomposermultiframecommand.h.

Referenced by containsChange(), redo(), and saveAfterState().

Definition at line 47 of file qgscomposermultiframecommand.h.

Referenced by checkFirstRun().

Definition at line 44 of file qgscomposermultiframecommand.h.

Referenced by containsChange(), savePreviousState(), and undo().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines