QGIS API Documentation  2.99.0-Master (08c2e66)
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
QgsComposerMultiFrameCommand Class Reference

#include <qgscomposermultiframecommand.h>

Inheritance diagram for QgsComposerMultiFrameCommand:
Inheritance graph

Public Member Functions

 QgsComposerMultiFrameCommand (QgsComposerMultiFrame *multiFrame, const QString &text, QUndoCommand *parent=nullptr)
QDomDocument afterState () const
bool containsChange () const
 Returns true if previous state and after state are valid and different. More...
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 = nullptr
QDomDocument mPreviousState

Detailed Description

Definition at line 31 of file qgscomposermultiframecommand.h.

Constructor & Destructor Documentation

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

Definition at line 23 of file qgscomposermultiframecommand.cpp.

QgsComposerMultiFrameCommand::QgsComposerMultiFrameCommand ( )

Definition at line 28 of file qgscomposermultiframecommand.cpp.

Member Function Documentation

QDomDocument QgsComposerMultiFrameCommand::afterState ( ) const

Definition at line 43 of file qgscomposermultiframecommand.h.

bool QgsComposerMultiFrameCommand::checkFirstRun ( )

Definition at line 76 of file qgscomposermultiframecommand.cpp.

bool QgsComposerMultiFrameCommand::containsChange ( ) const

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

Definition at line 86 of file qgscomposermultiframecommand.cpp.

const QgsComposerMultiFrame* QgsComposerMultiFrameCommand::multiFrame ( ) const

Definition at line 48 of file qgscomposermultiframecommand.h.

QDomDocument QgsComposerMultiFrameCommand::previousState ( ) const

Definition at line 42 of file qgscomposermultiframecommand.h.

void QgsComposerMultiFrameCommand::redo ( )

Definition at line 37 of file qgscomposermultiframecommand.cpp.

void QgsComposerMultiFrameCommand::restoreState ( QDomDocument &  stateDoc)

Definition at line 67 of file qgscomposermultiframecommand.cpp.

void QgsComposerMultiFrameCommand::saveAfterState ( )

Definition at line 51 of file qgscomposermultiframecommand.cpp.

void QgsComposerMultiFrameCommand::savePreviousState ( )

Definition at line 46 of file qgscomposermultiframecommand.cpp.

void QgsComposerMultiFrameCommand::saveState ( QDomDocument &  stateDoc)

Definition at line 56 of file qgscomposermultiframecommand.cpp.

void QgsComposerMultiFrameCommand::undo ( )

Definition at line 32 of file qgscomposermultiframecommand.cpp.

Member Data Documentation

QDomDocument QgsComposerMultiFrameCommand::mAfterState

Definition at line 54 of file qgscomposermultiframecommand.h.

bool QgsComposerMultiFrameCommand::mFirstRun

Definition at line 56 of file qgscomposermultiframecommand.h.

QgsComposerMultiFrame* QgsComposerMultiFrameCommand::mMultiFrame = nullptr

Definition at line 51 of file qgscomposermultiframecommand.h.

QDomDocument QgsComposerMultiFrameCommand::mPreviousState

Definition at line 53 of file qgscomposermultiframecommand.h.

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