QGIS API Documentation  master-3f58142
QgsComposerRasterSymbolItem Class Reference

#include <qgscomposerlegenditem.h>

+ Inheritance diagram for QgsComposerRasterSymbolItem:
+ Collaboration diagram for QgsComposerRasterSymbolItem:

List of all members.

Public Member Functions

 QgsComposerRasterSymbolItem ()
 QgsComposerRasterSymbolItem (const QString &text)
 QgsComposerRasterSymbolItem (const QIcon &icon, const QString &text)
virtual ~QgsComposerRasterSymbolItem ()
virtual QStandardItem * clone () const
QColor color () const
ItemType itemType () const
QString layerID () const
virtual void readXML (const QDomElement &itemElem, bool xServerAvailable=true)
 Read item content from xml.
void setColor (const QColor &c)
void setLayerID (const QString &id)
virtual void writeXML (QDomElement &elem, QDomDocument &doc) const

Private Attributes

QColor mColor
QString mLayerID

Detailed Description

Definition at line 97 of file qgscomposerlegenditem.h.


Constructor & Destructor Documentation

Definition at line 154 of file qgscomposerlegenditem.cpp.

QgsComposerRasterSymbolItem::QgsComposerRasterSymbolItem ( const QIcon &  icon,
const QString &  text 
)

Definition at line 158 of file qgscomposerlegenditem.cpp.


Member Function Documentation

QStandardItem * QgsComposerRasterSymbolItem::clone ( ) const [virtual]
QColor QgsComposerRasterSymbolItem::color ( void  ) const [inline]

Definition at line 115 of file qgscomposerlegenditem.h.

Referenced by QgsComposerLegend::drawSymbolItem().

QString QgsComposerRasterSymbolItem::layerID ( ) const [inline]

Definition at line 111 of file qgscomposerlegenditem.h.

void QgsComposerRasterSymbolItem::readXML ( const QDomElement &  itemElem,
bool  xServerAvailable = true 
) [virtual]

Read item content from xml.

Parameters:
itemElemitem to read from
xServerAvailableRead item icons if true (QIcon needs x-server)

Implements QgsComposerLegendItem.

Definition at line 184 of file qgscomposerlegenditem.cpp.

References mColor, setColor(), setLayerID(), and QgsComposerLegendItem::setUserText().

void QgsComposerRasterSymbolItem::setColor ( const QColor &  c) [inline]

Definition at line 114 of file qgscomposerlegenditem.h.

Referenced by QgsLegendModel::addRasterLayerItems(), and readXML().

void QgsComposerRasterSymbolItem::setLayerID ( const QString &  id) [inline]

Definition at line 110 of file qgscomposerlegenditem.h.

Referenced by QgsLegendModel::addRasterLayerItems(), clone(), and readXML().

void QgsComposerRasterSymbolItem::writeXML ( QDomElement &  elem,
QDomDocument &  doc 
) const [virtual]

Implements QgsComposerLegendItem.

Definition at line 174 of file qgscomposerlegenditem.cpp.

References mColor, mLayerID, and QgsComposerLegendItem::userText().


Member Data Documentation

Definition at line 119 of file qgscomposerlegenditem.h.

Referenced by readXML(), and writeXML().

Definition at line 118 of file qgscomposerlegenditem.h.

Referenced by clone(), and writeXML().


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