QGIS API Documentation  master-3f58142
QgsComposerMergeCommand Class Reference

A composer command that merges together with other commands having the same context (=id). More...

#include <qgscomposeritemcommand.h>

+ Inheritance diagram for QgsComposerMergeCommand:
+ Collaboration diagram for QgsComposerMergeCommand:

List of all members.

Public Types

enum  Context {
  Unknown = 0, ComposerLabelSetText, ComposerLabelSetId, ComposerLabelRotation,
  ComposerMapRotation, ComposerMapAnnotationDistance, ComposerLegendText, LegendColumnCount,
  LegendSplitLayer, LegendEqualColumnWidth, LegendSymbolWidth, LegendSymbolHeight,
  LegendGroupSpace, LegendLayerSpace, LegendSymbolSpace, LegendIconSymbolSpace,
  LegendBoxSpace, LegendColumnSpace, ComposerPictureRotation, ScaleBarLineWidth,
  ScaleBarHeight, ScaleBarSegmentSize, ScaleBarSegmentsLeft, ScaleBarNSegments,
  ScaleBarUnitText, ScaleBarMapUnitsSegment, ScaleBarLabelBarSize, ScaleBarBoxContentSpace,
  TableMaximumFeatures, TableMargin, TableGridStrokeWidth, ShapeRotation,
  ShapeOutlineWidth, ArrowOutlineWidth, ArrowHeadWidth, ItemOutlineWidth,
  ItemMove
}

Public Member Functions

 QgsComposerMergeCommand (Context c, QgsComposerItem *item, const QString &text)
 ~QgsComposerMergeCommand ()
int id () const
bool mergeWith (const QUndoCommand *command)

Private Attributes

Context mContext

Detailed Description

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 68 of file qgscomposeritemcommand.h.


Member Enumeration Documentation

Enumerator:
Unknown 
ComposerLabelSetText 
ComposerLabelSetId 
ComposerLabelRotation 
ComposerMapRotation 
ComposerMapAnnotationDistance 
ComposerLegendText 
LegendColumnCount 
LegendSplitLayer 
LegendEqualColumnWidth 
LegendSymbolWidth 
LegendSymbolHeight 
LegendGroupSpace 
LegendLayerSpace 
LegendSymbolSpace 
LegendIconSymbolSpace 
LegendBoxSpace 
LegendColumnSpace 
ComposerPictureRotation 
ScaleBarLineWidth 
ScaleBarHeight 
ScaleBarSegmentSize 
ScaleBarSegmentsLeft 
ScaleBarNSegments 
ScaleBarUnitText 
ScaleBarMapUnitsSegment 
ScaleBarLabelBarSize 
ScaleBarBoxContentSpace 
TableMaximumFeatures 
TableMargin 
TableGridStrokeWidth 
ShapeRotation 
ShapeOutlineWidth 
ArrowOutlineWidth 
ArrowHeadWidth 
ItemOutlineWidth 
ItemMove 

Definition at line 71 of file qgscomposeritemcommand.h.


Constructor & Destructor Documentation

QgsComposerMergeCommand::QgsComposerMergeCommand ( Context  c,
QgsComposerItem item,
const QString &  text 
)

Definition at line 80 of file qgscomposeritemcommand.cpp.


Member Function Documentation

int QgsComposerMergeCommand::id ( ) const [inline]

Definition at line 125 of file qgscomposeritemcommand.h.


Member Data Documentation


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines