Undo command to undo/redo all composer item related changes.
More...
#include <qgscomposeritemcommand.h>
Protected Member Functions |
void | saveState (QDomDocument &stateDoc) const |
void | restoreState (QDomDocument &stateDoc) const |
Detailed Description
Undo command to undo/redo all composer item related changes.
Constructor & Destructor Documentation
QgsComposerItemCommand::QgsComposerItemCommand |
( |
QgsComposerItem * |
item, |
|
|
const QString & |
text, |
|
|
QUndoCommand * |
parent = 0 |
|
) |
| |
QgsComposerItemCommand::~QgsComposerItemCommand |
( |
| ) |
|
|
virtual |
Member Function Documentation
QDomDocument QgsComposerItemCommand::afterState |
( |
| ) |
const |
|
inline |
bool QgsComposerItemCommand::containsChange |
( |
| ) |
const |
Returns true if previous state and after state are valid and different.
Returns the target item the command applies to.
- Returns
- target composer item
QDomDocument QgsComposerItemCommand::previousState |
( |
| ) |
const |
|
inline |
void QgsComposerItemCommand::redo |
( |
| ) |
|
void QgsComposerItemCommand::restoreState |
( |
QDomDocument & |
stateDoc | ) |
const |
|
protected |
void QgsComposerItemCommand::saveAfterState |
( |
| ) |
|
Saves current item state as after state.
void QgsComposerItemCommand::savePreviousState |
( |
| ) |
|
Saves current item state as previous state.
void QgsComposerItemCommand::saveState |
( |
QDomDocument & |
stateDoc | ) |
const |
|
protected |
void QgsComposerItemCommand::undo |
( |
| ) |
|
Member Data Documentation
QDomDocument QgsComposerItemCommand::mAfterState |
|
protected |
XML containing the state after executing the command.
bool QgsComposerItemCommand::mFirstRun |
|
protected |
Flag to prevent the first redo() if the command is pushed to the undo stack.
int QgsComposerItemCommand::mFrameNumber |
|
protected |
Target item of the command.
Parameters for frame items.
Parent multiframe
QDomDocument QgsComposerItemCommand::mPreviousState |
|
protected |
XML that saves the state before executing the command.
The documentation for this class was generated from the following files: