QGIS API Documentation  2.5.0-Master
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
QgsComposerMultiFrameCommand Class Reference

#include <qgscomposermultiframecommand.h>

Inheritance diagram for QgsComposerMultiFrameCommand:
Inheritance graph
[legend]
Collaboration diagram for QgsComposerMultiFrameCommand:
Collaboration graph
[legend]

Public Member Functions

 QgsComposerMultiFrameCommand (QgsComposerMultiFrame *multiFrame, const QString &text, QUndoCommand *parent=0)
 
 ~QgsComposerMultiFrameCommand ()
 
void undo ()
 
void redo ()
 
void savePreviousState ()
 
void saveAfterState ()
 
QDomDocument previousState () const
 
QDomDocument afterState () const
 
bool containsChange () const
 Returns true if previous state and after state are valid and different. More...
 
const QgsComposerMultiFramemultiFrame () const
 

Protected Member Functions

 QgsComposerMultiFrameCommand ()
 
void saveState (QDomDocument &stateDoc)
 
void restoreState (QDomDocument &stateDoc)
 
bool checkFirstRun ()
 

Protected Attributes

QgsComposerMultiFramemMultiFrame
 
QDomDocument mPreviousState
 
QDomDocument mAfterState
 
bool mFirstRun
 

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 22 of file qgscomposermultiframecommand.cpp.

QgsComposerMultiFrameCommand::~QgsComposerMultiFrameCommand ( )

Definition at line 31 of file qgscomposermultiframecommand.cpp.

QgsComposerMultiFrameCommand::QgsComposerMultiFrameCommand ( )
protected

Definition at line 27 of file qgscomposermultiframecommand.cpp.

Member Function Documentation

QDomDocument QgsComposerMultiFrameCommand::afterState ( ) const
inline
bool QgsComposerMultiFrameCommand::checkFirstRun ( )
protected

Definition at line 79 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 89 of file qgscomposermultiframecommand.cpp.

References mAfterState, and mPreviousState.

Referenced by QgsComposition::endMultiFrameCommand().

const QgsComposerMultiFrame* QgsComposerMultiFrameCommand::multiFrame ( ) const
inline
QDomDocument QgsComposerMultiFrameCommand::previousState ( ) const
inline

Definition at line 38 of file qgscomposermultiframecommand.h.

void QgsComposerMultiFrameCommand::redo ( )

Definition at line 40 of file qgscomposermultiframecommand.cpp.

References checkFirstRun(), mAfterState, and restoreState().

void QgsComposerMultiFrameCommand::restoreState ( QDomDocument &  stateDoc)
protected
void QgsComposerMultiFrameCommand::saveAfterState ( )

Definition at line 54 of file qgscomposermultiframecommand.cpp.

References mAfterState, and saveState().

Referenced by QgsComposition::endMultiFrameCommand().

void QgsComposerMultiFrameCommand::savePreviousState ( )

Definition at line 49 of file qgscomposermultiframecommand.cpp.

References mPreviousState, and saveState().

Referenced by QgsComposition::beginMultiFrameCommand().

void QgsComposerMultiFrameCommand::saveState ( QDomDocument &  stateDoc)
protected
void QgsComposerMultiFrameCommand::undo ( )

Definition at line 35 of file qgscomposermultiframecommand.cpp.

References mPreviousState, and restoreState().

Member Data Documentation

QDomDocument QgsComposerMultiFrameCommand::mAfterState
protected
bool QgsComposerMultiFrameCommand::mFirstRun
protected

Definition at line 52 of file qgscomposermultiframecommand.h.

Referenced by checkFirstRun().

QgsComposerMultiFrame* QgsComposerMultiFrameCommand::mMultiFrame
protected
QDomDocument QgsComposerMultiFrameCommand::mPreviousState
protected

Definition at line 49 of file qgscomposermultiframecommand.h.

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


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