Quantum GIS API Documentation
1.7.4
|
A composer command that merges together with other commands having the same context (=id). More...
#include <qgscomposeritemcommand.h>
Public Types | |
enum | Context { Unknown = 0, ComposerLabelSetText, ComposerLabelSetId, ComposerMapRotation, ComposerMapAnnotationDistance, ComposerLegendText, LegendSymbolWidth, LegendSymbolHeight, LegendLayerSpace, LegendSymbolSpace, LegendIconSymbolSpace, LegendBoxSpace, ComposerPictureRotation, ScaleBarLineWidth, ScaleBarHeight, ScaleBarSegmentSize, ScaleBarSegmentsLeft, ScaleBarNSegments, ScaleBarUnitText, ScaleBarMapUnitsSegment, ScaleBarLabelBarSize, ScaleBarBoxContentSpace, TableMaximumFeatures, TableMargin, TableGridStrokeWidth, ShapeRotation, ShapeOutlineWidth, ArrowOutlineWidth, ArrowHeadWidth, ItemOutlineWidth } |
Public Member Functions | |
QgsComposerMergeCommand (Context c, QgsComposerItem *item, const QString &text) | |
~QgsComposerMergeCommand () | |
bool | mergeWith (const QUndoCommand *command) |
int | id () const |
Private Attributes | |
Context | mContext |
A composer command that merges together with other commands having the same context (=id).
Keeps the oldest previous state and uses the newest after state. The purpose is to avoid too many micro changes in the history
Definition at line 66 of file qgscomposeritemcommand.h.
Definition at line 69 of file qgscomposeritemcommand.h.
QgsComposerMergeCommand::QgsComposerMergeCommand | ( | Context | c, |
QgsComposerItem * | item, | ||
const QString & | text | ||
) |
Definition at line 80 of file qgscomposeritemcommand.cpp.
Definition at line 84 of file qgscomposeritemcommand.cpp.
int QgsComposerMergeCommand::id | ( | ) | const [inline] |
Definition at line 116 of file qgscomposeritemcommand.h.
bool QgsComposerMergeCommand::mergeWith | ( | const QUndoCommand * | command | ) |
Definition at line 88 of file qgscomposeritemcommand.cpp.
References QgsComposerItemCommand::afterState(), and QgsComposerItemCommand::mAfterState.
Context QgsComposerMergeCommand::mContext [private] |
Definition at line 119 of file qgscomposeritemcommand.h.