|
Quantum GIS API Documentation
master-693a1fe
|
A legend that can be placed onto a map composition. More...
#include <qgscomposerlegend.h>
Inheritance diagram for QgsComposerLegend:
Collaboration diagram for QgsComposerLegend:Classes | |
| class | Atom |
| Atom is indivisible set (indivisible into more columns). More... | |
| class | Nucleon |
| Nucleon is either group title, layer title or layer child item. More... | |
Public Slots | |
| void | invalidateCurrentMap () |
| Sets mCompositionMap to 0 if the map is deleted. | |
| void | synchronizeWithModel () |
| Data changed. | |
Public Member Functions | |
| QgsComposerLegend (QgsComposition *composition) | |
| ~QgsComposerLegend () | |
| void | adjustBoxSize () |
| Sets item box to the whole content. | |
| double | boxSpace () const |
| int | columnCount () const |
| double | columnSpace () const |
| const QgsComposerMap * | composerMap () const |
| int | equalColumnWidth () const |
| QColor | fontColor () const |
| QgsLegendModel * | model () |
| Returns pointer to the legend model. | |
| void | paint (QPainter *painter, const QStyleOptionGraphicsItem *itemStyle, QWidget *pWidget) |
| Reimplementation of QCanvasItem::paint. | |
| QSizeF | paintAndDetermineSize (QPainter *painter) |
| Paints the legend and calculates its size. | |
| bool | readXML (const QDomElement &itemElem, const QDomDocument &doc) |
| sets state from Dom document | |
| QgsComposerLegendStyle & | rstyle (QgsComposerLegendStyle::Style s) |
| Returns reference to modifiable style. | |
| void | setBoxSpace (double s) |
| void | setColumnCount (int c) |
| void | setColumnSpace (double s) |
| void | setComposerMap (const QgsComposerMap *map) |
| void | setEqualColumnWidth (bool s) |
| void | setFontColor (const QColor &c) |
| void | setSplitLayer (bool s) |
| void | setStyle (QgsComposerLegendStyle::Style s, const QgsComposerLegendStyle style) |
| void | setStyleFont (QgsComposerLegendStyle::Style s, const QFont &f) |
| Set style font. | |
| void | setStyleMargin (QgsComposerLegendStyle::Style s, double margin) |
| Set style margin. | |
| void | setStyleMargin (QgsComposerLegendStyle::Style s, QgsComposerLegendStyle::Side side, double margin) |
| void | setSymbolHeight (double h) |
| void | setSymbolWidth (double w) |
| void | setTitle (const QString &t) |
| void | setWrapChar (const QString &t) |
| int | splitLayer () const |
| QgsComposerLegendStyle | style (QgsComposerLegendStyle::Style s) const |
| Returns style. | |
| QFont | styleFont (QgsComposerLegendStyle::Style s) const |
| double | symbolHeight () const |
| double | symbolWidth () const |
| QString | title () const |
| virtual int | type () const |
| return correct graphics item type. | |
| void | updateLegend () |
| Updates the model and all legend entries. | |
| QString | wrapChar () const |
| bool | writeXML (QDomElement &elem, QDomDocument &doc) const |
| stores state in Dom node | |
Protected Attributes | |
| qreal | mBoxSpace |
| Space between item box and contents. | |
| int | mColumnCount |
| Number of legend columns. | |
| double | mColumnSpace |
| Space between columns. | |
| const QgsComposerMap * | mComposerMap |
| Reference to map (because symbols are sometimes in map units) | |
| bool | mEqualColumnWidth |
| Use the same width (maximum) for all columns. | |
| QColor | mFontColor |
| QgsLegendModel | mLegendModel |
| double | mlineSpacing |
| Spacing between lines when wrapped. | |
| bool | mSplitLayer |
| Allow splitting layers into multiple columns. | |
| double | mSymbolHeight |
| Height of symbol icon. | |
| double | mSymbolWidth |
| Width of symbol icon. | |
| QString | mTitle |
| QString | mWrapChar |
Private Member Functions | |
| QgsComposerLegend () | |
| QList< Atom > | createAtomList (QStandardItem *rootItem, bool splitLayer) |
| Create list of atoms according to current layer splitting mode. | |
| QSizeF | drawAtom (Atom atom, QPainter *painter=0, QPointF point=QPointF()) |
| Draw atom and return its actual size. | |
| QSizeF | drawGroupItemTitle (QgsComposerGroupItem *groupItem, QPainter *painter=0, QPointF point=QPointF()) |
| Draws a group item and all subitems Returns list of sizes of layers and groups including this group. | |
| QSizeF | drawLayerItemTitle (QgsComposerLayerItem *layerItem, QPainter *painter=0, QPointF point=QPointF()) |
| Draws a layer item and all subitems. | |
| Nucleon | drawSymbolItem (QgsComposerLegendItem *symbolItem, QPainter *painter=0, QPointF point=QPointF(), double labelXOffset=0.) |
| void | drawSymbolV2 (QPainter *p, QgsSymbolV2 *s, double currentYCoord, double ¤tXPosition, double &symbolHeight) const |
| Draws a symbol at the current y position and returns the new x position. | |
| QSizeF | drawTitle (QPainter *painter=0, QPointF point=QPointF(), Qt::AlignmentFlag halignment=Qt::AlignLeft) |
| QStringList | layerIdList () const |
| Helper function that lists ids of layers contained in map canvas. | |
| void | setColumns (QList< Atom > &atomList) |
| Divide atoms to columns and set columns on atoms. | |
| double | spaceAboveAtom (Atom atom) |
| QStringList | splitStringForWrapping (QString stringToSplt) |
| Splits a string using the wrap char taking into account handling empty wrap char which means no wrapping. | |
Private Attributes | |
| QMap < QgsComposerLegendStyle::Style, QgsComposerLegendStyle > | mStyleMap |
A legend that can be placed onto a map composition.
Definition at line 34 of file qgscomposerlegend.h.
| QgsComposerLegend::QgsComposerLegend | ( | QgsComposition * | composition | ) |
Definition at line 33 of file qgscomposerlegend.cpp.
References adjustBoxSize(), QgsComposerLegendStyle::Group, QgsComposerLegendStyle::Left, mLegendModel, mlineSpacing, mSymbolHeight, mSymbolWidth, mWrapChar, QgsComposerLegendStyle::rfont(), rstyle(), setStyleMargin(), QgsComposerLegendStyle::Subgroup, QgsComposerLegendStyle::Symbol, QgsComposerLegendStyle::SymbolLabel, synchronizeWithModel(), QgsComposerLegendStyle::Title, and QgsComposerLegendStyle::Top.
Definition at line 68 of file qgscomposerlegend.cpp.
| QgsComposerLegend::QgsComposerLegend | ( | ) | [private] |
Definition at line 63 of file qgscomposerlegend.cpp.
| void QgsComposerLegend::adjustBoxSize | ( | ) |
Sets item box to the whole content.
Definition at line 292 of file qgscomposerlegend.cpp.
References paintAndDetermineSize(), QgsDebugMsg, QgsComposerItem::setSceneRect(), and size.
Referenced by QgsComposerLegend(), synchronizeWithModel(), and updateLegend().
| double QgsComposerLegend::boxSpace | ( | ) | const [inline] |
Definition at line 76 of file qgscomposerlegend.h.
| int QgsComposerLegend::columnCount | ( | ) | const [inline] |
Definition at line 94 of file qgscomposerlegend.h.
| double QgsComposerLegend::columnSpace | ( | ) | const [inline] |
Definition at line 79 of file qgscomposerlegend.h.
| const QgsComposerMap* QgsComposerLegend::composerMap | ( | ) | const [inline] |
Definition at line 104 of file qgscomposerlegend.h.
| QList< QgsComposerLegend::Atom > QgsComposerLegend::createAtomList | ( | QStandardItem * | rootItem, |
| bool | splitLayer | ||
| ) | [private] |
Create list of atoms according to current layer splitting mode.
Definition at line 733 of file qgscomposerlegend.cpp.
References drawGroupItemTitle(), drawLayerItemTitle(), drawSymbolItem(), QgsComposerLegendItem::GroupItem, QgsComposerLegendStyle::Hidden, QgsComposerLegend::Nucleon::item, QgsComposerLegendItem::itemType(), QgsComposerLegendItem::LayerItem, QgsComposerLegendStyle::margin(), mSplitLayer, QgsComposerLegend::Atom::nucleons, QgsComposerLegend::Nucleon::size, QgsComposerLegend::Atom::size, spaceAboveAtom(), QgsComposerLegendItem::style(), style(), QgsComposerLegendStyle::Symbol, QgsComposerLegendStyle::Top, and type().
Referenced by paintAndDetermineSize().
| QSizeF QgsComposerLegend::drawAtom | ( | Atom | atom, |
| QPainter * | painter = 0, |
||
| QPointF | point = QPointF() |
||
| ) | [private] |
Draw atom and return its actual size.
Definition at line 834 of file qgscomposerlegend.cpp.
References drawGroupItemTitle(), drawLayerItemTitle(), drawSymbolItem(), QgsComposerLegendItem::GroupItem, QgsComposerLegendStyle::Hidden, QgsComposerLegend::Nucleon::item, QgsComposerLegendItem::itemType(), QgsComposerLegend::Nucleon::labelXOffset, QgsComposerLegendItem::LayerItem, QgsComposerLegendStyle::margin(), QgsComposerLegend::Atom::nucleons, QgsComposerLegendItem::RasterSymbolItem, size, QgsComposerLegend::Nucleon::size, QgsComposerLegend::Atom::size, QgsComposerLegendItem::style(), style(), QgsComposerLegendStyle::Symbol, QgsComposerLegendItem::SymbologyV2Item, QgsComposerLegendStyle::Top, and type().
Referenced by paintAndDetermineSize().
| QSizeF QgsComposerLegend::drawGroupItemTitle | ( | QgsComposerGroupItem * | groupItem, |
| QPainter * | painter = 0, |
||
| QPointF | point = QPointF() |
||
| ) | [private] |
Draws a group item and all subitems Returns list of sizes of layers and groups including this group.
Definition at line 238 of file qgscomposerlegend.cpp.
References QgsComposerItem::drawText(), QgsComposerItem::fontAscentMillimeters(), mFontColor, mlineSpacing, size, splitStringForWrapping(), QgsComposerLegendItem::style(), styleFont(), and QgsComposerItem::textWidthMillimeters().
Referenced by createAtomList(), and drawAtom().
| QSizeF QgsComposerLegend::drawLayerItemTitle | ( | QgsComposerLayerItem * | layerItem, |
| QPainter * | painter = 0, |
||
| QPointF | point = QPointF() |
||
| ) | [private] |
Draws a layer item and all subitems.
Definition at line 263 of file qgscomposerlegend.cpp.
References QgsComposerItem::drawText(), QgsComposerItem::fontAscentMillimeters(), mFontColor, mlineSpacing, size, splitStringForWrapping(), QgsComposerLegendItem::style(), styleFont(), and QgsComposerItem::textWidthMillimeters().
Referenced by createAtomList(), and drawAtom().
| QgsComposerLegend::Nucleon QgsComposerLegend::drawSymbolItem | ( | QgsComposerLegendItem * | symbolItem, |
| QPainter * | painter = 0, |
||
| QPointF | point = QPointF(), |
||
| double | labelXOffset = 0. |
||
| ) | [private] |
Definition at line 302 of file qgscomposerlegend.cpp.
References QgsComposerRasterSymbolItem::color(), drawSymbolV2(), QgsComposerItem::drawText(), QgsComposerItem::fontHeightCharacterMM(), QgsMapLayerRegistry::instance(), QgsComposerLegend::Nucleon::item, QgsComposerLegend::Nucleon::labelSize, QgsComposerLayerItem::layerID(), QgsMapLayerRegistry::mapLayer(), mFontColor, mlineSpacing, mSymbolHeight, mSymbolWidth, QgsComposerLegend::Nucleon::size, splitStringForWrapping(), styleFont(), QgsComposerLegendStyle::SymbolLabel, QgsComposerLegend::Nucleon::symbolSize, QgsComposerSymbolV2Item::symbolV2(), and QgsComposerItem::textWidthMillimeters().
Referenced by createAtomList(), and drawAtom().
| void QgsComposerLegend::drawSymbolV2 | ( | QPainter * | p, |
| QgsSymbolV2 * | s, | ||
| double | currentYCoord, | ||
| double & | currentXPosition, | ||
| double & | symbolHeight | ||
| ) | const [private] |
Draws a symbol at the current y position and returns the new x position.
Returns real symbol height, because for points, it is possible that it differs from mSymbolHeight
Definition at line 420 of file qgscomposerlegend.cpp.
References QgsSymbolV2::drawPreviewIcon(), QgsSymbolV2::MapUnit, QgsComposerMap::mapUnitsToMM(), mComposerMap, QgsSymbolV2::MM, mSymbolHeight, mSymbolWidth, QgsSymbolV2::outputUnit(), rasterScaleFactor, QgsSymbolV2::setOutputUnit(), QgsMarkerSymbolV2::setSize(), size, and QgsMarkerSymbolV2::size().
Referenced by drawSymbolItem().
| QSizeF QgsComposerLegend::drawTitle | ( | QPainter * | painter = 0, |
| QPointF | point = QPointF(), |
||
| Qt::AlignmentFlag | halignment = Qt::AlignLeft |
||
| ) | [private] |
Definition at line 201 of file qgscomposerlegend.cpp.
References QgsComposerItem::drawText(), QgsComposerItem::fontAscentMillimeters(), QgsComposerItem::fontDescentMillimeters(), mFontColor, mlineSpacing, mTitle, size, splitStringForWrapping(), styleFont(), QgsComposerItem::textWidthMillimeters(), and QgsComposerLegendStyle::Title.
Referenced by paintAndDetermineSize().
| int QgsComposerLegend::equalColumnWidth | ( | ) | const [inline] |
Definition at line 100 of file qgscomposerlegend.h.
| QColor QgsComposerLegend::fontColor | ( | ) | const [inline] |
Definition at line 82 of file qgscomposerlegend.h.
| void QgsComposerLegend::invalidateCurrentMap | ( | ) | [slot] |
Sets mCompositionMap to 0 if the map is deleted.
Definition at line 713 of file qgscomposerlegend.cpp.
References mComposerMap.
Referenced by setComposerMap().
| QStringList QgsComposerLegend::layerIdList | ( | ) | const [private] |
Helper function that lists ids of layers contained in map canvas.
Definition at line 502 of file qgscomposerlegend.cpp.
References QgsMapRenderer::layerSet(), QgsComposition::mapRenderer(), and QgsComposerItem::mComposition.
Referenced by updateLegend().
| QgsLegendModel* QgsComposerLegend::model | ( | ) | [inline] |
Returns pointer to the legend model.
Definition at line 56 of file qgscomposerlegend.h.
| void QgsComposerLegend::paint | ( | QPainter * | painter, |
| const QStyleOptionGraphicsItem * | itemStyle, | ||
| QWidget * | pWidget | ||
| ) |
Reimplementation of QCanvasItem::paint.
Definition at line 73 of file qgscomposerlegend.cpp.
References paintAndDetermineSize().
| QSizeF QgsComposerLegend::paintAndDetermineSize | ( | QPainter * | painter | ) |
Paints the legend and calculates its size.
If painter is 0, only size is calculated
Definition at line 80 of file qgscomposerlegend.cpp.
References QgsComposerLegend::Atom::column, createAtomList(), drawAtom(), QgsComposerItem::drawBackground(), QgsComposerItem::drawFrame(), QgsComposerItem::drawSelectionBoxes(), drawTitle(), QgsComposerLegendStyle::Group, QgsComposerLegendStyle::margin(), mBoxSpace, mColumnCount, mColumnSpace, mEqualColumnWidth, mLegendModel, mSplitLayer, mTitle, setColumns(), QgsComposerItem::setSceneRect(), size, QgsComposerLegend::Atom::size, spaceAboveAtom(), style(), and QgsComposerLegendStyle::Top.
Referenced by adjustBoxSize(), and paint().
| bool QgsComposerLegend::readXML | ( | const QDomElement & | itemElem, |
| const QDomDocument & | doc | ||
| ) | [virtual] |
sets state from Dom document
| itemElem | is Dom node corresponding to item tag |
| doc | is Dom document |
Implements QgsComposerItem.
Definition at line 589 of file qgscomposerlegend.cpp.
References QgsComposerItem::_readXML(), QgsComposition::getComposerMapById(), QgsComposerLegendStyle::Group, QgsComposerItem::itemChanged(), mBoxSpace, mColumnCount, mColumnSpace, mComposerMap, QgsComposerItem::mComposition, mEqualColumnWidth, mFontColor, mLegendModel, mSplitLayer, mSymbolHeight, mSymbolWidth, mTitle, mWrapChar, QgsComposerLegendStyle::readXML(), QgsLegendModel::readXML(), QgsComposerLegendStyle::rfont(), rstyle(), QgsComposerLegendStyle::setMargin(), setStyle(), style(), QgsComposerLegendStyle::Subgroup, QgsComposerLegendStyle::Symbol, QgsComposerLegendStyle::SymbolLabel, QgsComposerLegendStyle::Title, and QgsComposerLegendStyle::Top.
Referenced by QgsComposition::addItemsFromXML().
Returns reference to modifiable style.
Definition at line 63 of file qgscomposerlegend.h.
Referenced by QgsComposerLegend(), readXML(), setStyleFont(), and setStyleMargin().
| void QgsComposerLegend::setBoxSpace | ( | double | s | ) | [inline] |
Definition at line 77 of file qgscomposerlegend.h.
| void QgsComposerLegend::setColumnCount | ( | int | c | ) | [inline] |
Definition at line 95 of file qgscomposerlegend.h.
| void QgsComposerLegend::setColumns | ( | QList< Atom > & | atomList | ) | [private] |
Divide atoms to columns and set columns on atoms.
Definition at line 913 of file qgscomposerlegend.cpp.
References QgsComposerLegendItem::itemType(), QgsComposerLegendStyle::Left, QgsComposerLegendStyle::margin(), mColumnCount, QgsComposerLegendItem::RasterSymbolItem, QgsComposerLegendStyle::Right, QgsComposerLegend::Atom::size, spaceAboveAtom(), style(), QgsComposerLegendStyle::Symbol, QgsComposerLegendStyle::SymbolLabel, QgsComposerLegendItem::SymbologyV2Item, and type().
Referenced by paintAndDetermineSize().
| void QgsComposerLegend::setColumnSpace | ( | double | s | ) | [inline] |
Definition at line 80 of file qgscomposerlegend.h.
| void QgsComposerLegend::setComposerMap | ( | const QgsComposerMap * | map | ) |
Definition at line 704 of file qgscomposerlegend.cpp.
References invalidateCurrentMap(), and mComposerMap.
Referenced by QgsComposition::addComposerLegend().
| void QgsComposerLegend::setEqualColumnWidth | ( | bool | s | ) | [inline] |
Definition at line 101 of file qgscomposerlegend.h.
| void QgsComposerLegend::setFontColor | ( | const QColor & | c | ) | [inline] |
Definition at line 83 of file qgscomposerlegend.h.
| void QgsComposerLegend::setSplitLayer | ( | bool | s | ) | [inline] |
Definition at line 98 of file qgscomposerlegend.h.
| void QgsComposerLegend::setStyle | ( | QgsComposerLegendStyle::Style | s, |
| const QgsComposerLegendStyle | style | ||
| ) | [inline] |
Definition at line 66 of file qgscomposerlegend.h.
Referenced by readXML().
| void QgsComposerLegend::setStyleFont | ( | QgsComposerLegendStyle::Style | s, |
| const QFont & | f | ||
| ) |
Set style font.
Definition at line 523 of file qgscomposerlegend.cpp.
References rstyle(), and QgsComposerLegendStyle::setFont().
| void QgsComposerLegend::setStyleMargin | ( | QgsComposerLegendStyle::Style | s, |
| double | margin | ||
| ) |
Set style margin.
Definition at line 528 of file qgscomposerlegend.cpp.
References rstyle(), and QgsComposerLegendStyle::setMargin().
Referenced by QgsComposerLegend().
| void QgsComposerLegend::setStyleMargin | ( | QgsComposerLegendStyle::Style | s, |
| QgsComposerLegendStyle::Side | side, | ||
| double | margin | ||
| ) |
Definition at line 533 of file qgscomposerlegend.cpp.
References rstyle(), and QgsComposerLegendStyle::setMargin().
| void QgsComposerLegend::setSymbolHeight | ( | double | h | ) | [inline] |
Definition at line 89 of file qgscomposerlegend.h.
| void QgsComposerLegend::setSymbolWidth | ( | double | w | ) | [inline] |
Definition at line 86 of file qgscomposerlegend.h.
| void QgsComposerLegend::setTitle | ( | const QString & | t | ) | [inline] |
Definition at line 59 of file qgscomposerlegend.h.
| void QgsComposerLegend::setWrapChar | ( | const QString & | t | ) | [inline] |
Definition at line 91 of file qgscomposerlegend.h.
| double QgsComposerLegend::spaceAboveAtom | ( | Atom | atom | ) | [private] |
Definition at line 884 of file qgscomposerlegend.cpp.
References QgsComposerLegendItem::GroupItem, QgsComposerLegend::Nucleon::item, QgsComposerLegendItem::itemType(), QgsComposerLegendItem::LayerItem, QgsComposerLegendStyle::margin(), QgsComposerLegend::Atom::nucleons, QgsComposerLegendItem::RasterSymbolItem, QgsComposerLegendItem::style(), style(), QgsComposerLegendStyle::Symbol, QgsComposerLegendItem::SymbologyV2Item, QgsComposerLegendStyle::Top, and type().
Referenced by createAtomList(), paintAndDetermineSize(), and setColumns().
| int QgsComposerLegend::splitLayer | ( | ) | const [inline] |
Definition at line 97 of file qgscomposerlegend.h.
| QStringList QgsComposerLegend::splitStringForWrapping | ( | QString | stringToSplt | ) | [private] |
Splits a string using the wrap char taking into account handling empty wrap char which means no wrapping.
Definition at line 722 of file qgscomposerlegend.cpp.
References mWrapChar.
Referenced by drawGroupItemTitle(), drawLayerItemTitle(), drawSymbolItem(), and drawTitle().
| QgsComposerLegendStyle QgsComposerLegend::style | ( | QgsComposerLegendStyle::Style | s | ) | const [inline] |
Returns style.
Definition at line 65 of file qgscomposerlegend.h.
Referenced by createAtomList(), drawAtom(), paintAndDetermineSize(), readXML(), setColumns(), spaceAboveAtom(), and writeXML().
| QFont QgsComposerLegend::styleFont | ( | QgsComposerLegendStyle::Style | s | ) | const [inline] |
Definition at line 68 of file qgscomposerlegend.h.
Referenced by drawGroupItemTitle(), drawLayerItemTitle(), drawSymbolItem(), and drawTitle().
| double QgsComposerLegend::symbolHeight | ( | ) | const [inline] |
Definition at line 88 of file qgscomposerlegend.h.
| double QgsComposerLegend::symbolWidth | ( | ) | const [inline] |
Definition at line 85 of file qgscomposerlegend.h.
| void QgsComposerLegend::synchronizeWithModel | ( | ) | [slot] |
Data changed.
Definition at line 516 of file qgscomposerlegend.cpp.
References adjustBoxSize(), and QgsDebugMsg.
Referenced by QgsComposerLegend().
| QString QgsComposerLegend::title | ( | ) | const [inline] |
Definition at line 60 of file qgscomposerlegend.h.
| virtual int QgsComposerLegend::type | ( | ) | const [inline, virtual] |
return correct graphics item type.
Added in v1.7
Reimplemented from QgsComposerItem.
Definition at line 43 of file qgscomposerlegend.h.
References QgsComposerItem::ComposerLegend.
Referenced by createAtomList(), drawAtom(), setColumns(), and spaceAboveAtom().
| void QgsComposerLegend::updateLegend | ( | ) |
Updates the model and all legend entries.
Definition at line 538 of file qgscomposerlegend.cpp.
References adjustBoxSize(), layerIdList(), mLegendModel, and QgsLegendModel::setLayerSet().
Referenced by QgsComposerView::mousePressEvent().
| QString QgsComposerLegend::wrapChar | ( | ) | const [inline] |
Definition at line 92 of file qgscomposerlegend.h.
| bool QgsComposerLegend::writeXML | ( | QDomElement & | elem, |
| QDomDocument & | doc | ||
| ) | const [virtual] |
stores state in Dom node
| elem | is Dom element corresponding to 'Composer' tag |
| doc | Dom document |
Implements QgsComposerItem.
Definition at line 545 of file qgscomposerlegend.cpp.
References QgsComposerItem::_writeXML(), QgsComposerLegendStyle::Group, QgsComposerMap::id(), mBoxSpace, mColumnCount, mColumnSpace, mComposerMap, mEqualColumnWidth, mFontColor, mLegendModel, mSplitLayer, mSymbolHeight, mSymbolWidth, mTitle, mWrapChar, style(), QgsComposerLegendStyle::Subgroup, QgsComposerLegendStyle::Symbol, QgsComposerLegendStyle::SymbolLabel, QgsComposerLegendStyle::Title, QgsComposerLegendStyle::writeXML(), and QgsLegendModel::writeXML().
qreal QgsComposerLegend::mBoxSpace [protected] |
Space between item box and contents.
Definition at line 134 of file qgscomposerlegend.h.
Referenced by paintAndDetermineSize(), readXML(), and writeXML().
int QgsComposerLegend::mColumnCount [protected] |
Number of legend columns.
Definition at line 147 of file qgscomposerlegend.h.
Referenced by paintAndDetermineSize(), readXML(), setColumns(), and writeXML().
double QgsComposerLegend::mColumnSpace [protected] |
Space between columns.
Definition at line 136 of file qgscomposerlegend.h.
Referenced by paintAndDetermineSize(), readXML(), and writeXML().
const QgsComposerMap* QgsComposerLegend::mComposerMap [protected] |
Reference to map (because symbols are sometimes in map units)
Definition at line 152 of file qgscomposerlegend.h.
Referenced by drawSymbolV2(), invalidateCurrentMap(), readXML(), setComposerMap(), and writeXML().
bool QgsComposerLegend::mEqualColumnWidth [protected] |
Use the same width (maximum) for all columns.
Definition at line 158 of file qgscomposerlegend.h.
Referenced by paintAndDetermineSize(), readXML(), and writeXML().
QColor QgsComposerLegend::mFontColor [protected] |
Definition at line 131 of file qgscomposerlegend.h.
Referenced by drawGroupItemTitle(), drawLayerItemTitle(), drawSymbolItem(), drawTitle(), readXML(), and writeXML().
QgsLegendModel QgsComposerLegend::mLegendModel [protected] |
Definition at line 149 of file qgscomposerlegend.h.
Referenced by paintAndDetermineSize(), QgsComposerLegend(), readXML(), updateLegend(), and writeXML().
double QgsComposerLegend::mlineSpacing [protected] |
Spacing between lines when wrapped.
Definition at line 144 of file qgscomposerlegend.h.
Referenced by drawGroupItemTitle(), drawLayerItemTitle(), drawSymbolItem(), drawTitle(), and QgsComposerLegend().
bool QgsComposerLegend::mSplitLayer [protected] |
Allow splitting layers into multiple columns.
Definition at line 155 of file qgscomposerlegend.h.
Referenced by createAtomList(), paintAndDetermineSize(), readXML(), and writeXML().
Definition at line 234 of file qgscomposerlegend.h.
double QgsComposerLegend::mSymbolHeight [protected] |
Height of symbol icon.
Definition at line 141 of file qgscomposerlegend.h.
Referenced by drawSymbolItem(), drawSymbolV2(), QgsComposerLegend(), readXML(), and writeXML().
double QgsComposerLegend::mSymbolWidth [protected] |
Width of symbol icon.
Definition at line 139 of file qgscomposerlegend.h.
Referenced by drawSymbolItem(), drawSymbolV2(), QgsComposerLegend(), readXML(), and writeXML().
QString QgsComposerLegend::mTitle [protected] |
Definition at line 128 of file qgscomposerlegend.h.
Referenced by drawTitle(), paintAndDetermineSize(), readXML(), and writeXML().
QString QgsComposerLegend::mWrapChar [protected] |
Definition at line 129 of file qgscomposerlegend.h.
Referenced by QgsComposerLegend(), readXML(), splitStringForWrapping(), and writeXML().