Quantum GIS API Documentation  1.7.4
Public Types | Public Member Functions | Private Attributes
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:
Inheritance graph
[legend]
Collaboration diagram for QgsComposerMergeCommand:
Collaboration graph
[legend]

List of all members.

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

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


Member Enumeration Documentation

Enumerator:
Unknown 
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 

Definition at line 69 of file qgscomposeritemcommand.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

int QgsComposerMergeCommand::id ( ) const [inline]

Definition at line 116 of file qgscomposeritemcommand.h.

bool QgsComposerMergeCommand::mergeWith ( const QUndoCommand *  command)

Member Data Documentation

Definition at line 119 of file qgscomposeritemcommand.h.


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