QGIS API Documentation  2.8.2-Wien
 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]

Public Member Functions

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

Protected Member Functions

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

Protected 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 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

Definition at line 39 of file qgscomposermultiframecommand.h.

bool QgsComposerMultiFrameCommand::checkFirstRun ( )
protected

Definition at line 79 of file qgscomposermultiframecommand.cpp.

bool QgsComposerMultiFrameCommand::containsChange ( ) const

Returns true if previous state and after state are valid and different.

Definition at line 89 of file qgscomposermultiframecommand.cpp.

const QgsComposerMultiFrame* QgsComposerMultiFrameCommand::multiFrame ( ) const
inline

Definition at line 44 of file qgscomposermultiframecommand.h.

QDomDocument QgsComposerMultiFrameCommand::previousState ( ) const
inline

Definition at line 38 of file qgscomposermultiframecommand.h.

void QgsComposerMultiFrameCommand::redo ( )
override

Definition at line 40 of file qgscomposermultiframecommand.cpp.

void QgsComposerMultiFrameCommand::restoreState ( QDomDocument &  stateDoc)
protected

Definition at line 70 of file qgscomposermultiframecommand.cpp.

void QgsComposerMultiFrameCommand::saveAfterState ( )

Definition at line 54 of file qgscomposermultiframecommand.cpp.

void QgsComposerMultiFrameCommand::savePreviousState ( )

Definition at line 49 of file qgscomposermultiframecommand.cpp.

void QgsComposerMultiFrameCommand::saveState ( QDomDocument &  stateDoc)
protected

Definition at line 59 of file qgscomposermultiframecommand.cpp.

void QgsComposerMultiFrameCommand::undo ( )
override

Definition at line 35 of file qgscomposermultiframecommand.cpp.

Member Data Documentation

QDomDocument QgsComposerMultiFrameCommand::mAfterState
protected

Definition at line 50 of file qgscomposermultiframecommand.h.

bool QgsComposerMultiFrameCommand::mFirstRun
protected

Definition at line 52 of file qgscomposermultiframecommand.h.

QgsComposerMultiFrame* QgsComposerMultiFrameCommand::mMultiFrame
protected

Definition at line 47 of file qgscomposermultiframecommand.h.

QDomDocument QgsComposerMultiFrameCommand::mPreviousState
protected

Definition at line 49 of file qgscomposermultiframecommand.h.


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