QGIS API Documentation
2.0.1-Dufour
|
Abstract base class for the legend item types. More...
#include <qgscomposerlegenditem.h>
Public Types | |
enum | ItemType { GroupItem = QStandardItem::UserType, LayerItem, SymbologyV2Item, RasterSymbolItem, StyleItem } |
Public Member Functions | |
QgsComposerLegendItem (QgsComposerLegendStyle::Style s=QgsComposerLegendStyle::Undefined) | |
QgsComposerLegendItem (const QString &text, QgsComposerLegendStyle::Style s=QgsComposerLegendStyle::Undefined) | |
QgsComposerLegendItem (const QIcon &icon, const QString &text, QgsComposerLegendStyle::Style s=QgsComposerLegendStyle::Undefined) | |
virtual | ~QgsComposerLegendItem () |
virtual void | writeXML (QDomElement &elem, QDomDocument &doc) const =0 |
virtual void | readXML (const QDomElement &itemElem, bool xServerAvailable=true)=0 |
Read item content from xml. | |
virtual ItemType | itemType () const =0 |
virtual QStandardItem * | clone () const =0 |
QgsComposerLegendStyle::Style | style () const |
void | setStyle (QgsComposerLegendStyle::Style style) |
virtual QString | userText () const |
virtual void | setUserText (const QString &text) |
Protected Member Functions | |
void | writeXMLChildren (QDomElement &elem, QDomDocument &doc) const |
Protected Attributes | |
QgsComposerLegendStyle::Style | mStyle |
QString | mUserText |
Abstract base class for the legend item types.
Definition at line 27 of file qgscomposerlegenditem.h.
Definition at line 35 of file qgscomposerlegenditem.h.
QgsComposerLegendItem::QgsComposerLegendItem | ( | QgsComposerLegendStyle::Style | s = QgsComposerLegendStyle::Undefined | ) |
Definition at line 31 of file qgscomposerlegenditem.cpp.
QgsComposerLegendItem::QgsComposerLegendItem | ( | const QString & | text, |
QgsComposerLegendStyle::Style | s = QgsComposerLegendStyle::Undefined |
||
) |
Definition at line 36 of file qgscomposerlegenditem.cpp.
QgsComposerLegendItem::QgsComposerLegendItem | ( | const QIcon & | icon, |
const QString & | text, | ||
QgsComposerLegendStyle::Style | s = QgsComposerLegendStyle::Undefined |
||
) |
Definition at line 41 of file qgscomposerlegenditem.cpp.
|
virtual |
Definition at line 46 of file qgscomposerlegenditem.cpp.
|
pure virtual |
Implemented in QgsComposerGroupItem, QgsComposerLayerItem, QgsComposerRasterSymbolItem, and QgsComposerSymbolV2Item.
|
pure virtual |
Implemented in QgsComposerGroupItem, QgsComposerLayerItem, QgsComposerRasterSymbolItem, and QgsComposerSymbolV2Item.
Referenced by QgsComposerLegend::createAtomList(), QgsComposerLegend::drawAtom(), QgsLegendModel::flags(), QgsComposerLegend::setColumns(), QgsComposerLegend::spaceAboveAtom(), and QgsLegendModel::updateItem().
|
pure virtual |
Read item content from xml.
itemElem | item to read from |
xServerAvailable | Read item icons if true (QIcon needs x-server) |
Implemented in QgsComposerGroupItem, QgsComposerLayerItem, QgsComposerRasterSymbolItem, and QgsComposerSymbolV2Item.
Referenced by QgsLegendModel::dropMimeData(), QgsLegendModel::readXML(), QgsComposerLayerItem::readXML(), and QgsComposerGroupItem::readXML().
|
inline |
Definition at line 54 of file qgscomposerlegenditem.h.
Referenced by QgsComposerLayerItem::readXML(), QgsComposerGroupItem::readXML(), and QgsComposerLayerItem::setDefaultStyle().
|
inlinevirtual |
Definition at line 59 of file qgscomposerlegenditem.h.
Referenced by QgsLegendModel::addGroup(), QgsLegendModel::addLayer(), QgsLegendModel::addRasterLayerItems(), QgsLegendModel::addVectorLayerItemsV2(), QgsComposerSymbolV2Item::readXML(), QgsComposerRasterSymbolItem::readXML(), QgsComposerLayerItem::readXML(), and QgsComposerGroupItem::readXML().
|
inline |
Definition at line 53 of file qgscomposerlegenditem.h.
Referenced by QgsComposerLegend::createAtomList(), QgsComposerLegend::drawAtom(), QgsComposerLegend::drawGroupItemTitle(), QgsComposerLegend::drawLayerItemTitle(), QgsComposerStyleItem::QgsComposerStyleItem(), and QgsComposerLegend::spaceAboveAtom().
|
inlinevirtual |
Definition at line 57 of file qgscomposerlegenditem.h.
Referenced by QgsLegendModel::addRasterLayerItems(), QgsLegendModel::addVectorLayerItemsV2(), QgsComposerGroupItem::readXML(), QgsLegendModel::updateItemText(), QgsLegendModel::updateLayerItemText(), QgsLegendModel::updateRasterSymbolItemText(), QgsLegendModel::updateSymbolV2ItemText(), QgsComposerSymbolV2Item::writeXML(), QgsComposerRasterSymbolItem::writeXML(), QgsComposerLayerItem::writeXML(), and QgsComposerGroupItem::writeXML().
|
pure virtual |
Implemented in QgsComposerGroupItem, QgsComposerLayerItem, QgsComposerRasterSymbolItem, and QgsComposerSymbolV2Item.
Referenced by QgsLegendModel::mimeData(), QgsLegendModel::writeXML(), and writeXMLChildren().
|
protected |
Definition at line 50 of file qgscomposerlegenditem.cpp.
References writeXML().
Referenced by QgsComposerLayerItem::writeXML(), and QgsComposerGroupItem::writeXML().
|
protected |
Definition at line 65 of file qgscomposerlegenditem.h.
Referenced by QgsComposerLayerItem::writeXML(), and QgsComposerGroupItem::writeXML().
|
protected |
Definition at line 68 of file qgscomposerlegenditem.h.