Quantum GIS API Documentation  1.7.5-Wroclaw
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Attributes
QgsComposerRasterSymbolItem Class Reference

#include <qgscomposerlegenditem.h>

Inheritance diagram for QgsComposerRasterSymbolItem:
Inheritance graph
[legend]
Collaboration diagram for QgsComposerRasterSymbolItem:
Collaboration graph
[legend]

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
virtual void writeXML (QDomElement &elem, QDomDocument &doc) const
virtual void readXML (const QDomElement &itemElem, bool xServerAvailable=true)
 Read item content from xml.
void setLayerID (const QString &id)
QString layerID () const
ItemType itemType () const
void setColor (const QColor &c)
QColor color () const
- Public Member Functions inherited from QgsComposerLegendItem
 QgsComposerLegendItem ()
 QgsComposerLegendItem (const QString &text)
 QgsComposerLegendItem (const QIcon &icon, const QString &text)
virtual ~QgsComposerLegendItem ()

Private Attributes

QString mLayerID
QColor mColor

Additional Inherited Members

- Public Types inherited from QgsComposerLegendItem
enum  ItemType {
  GroupItem = QStandardItem::UserType, LayerItem, SymbologyItem, SymbologyV2Item,
  RasterSymbolItem
}
- Protected Member Functions inherited from QgsComposerLegendItem
void writeXMLChildren (QDomElement &elem, QDomDocument &doc) const

Detailed Description

Definition at line 111 of file qgscomposerlegenditem.h.


Constructor & Destructor Documentation

QgsComposerRasterSymbolItem::QgsComposerRasterSymbolItem ( )

Definition at line 237 of file qgscomposerlegenditem.cpp.

Referenced by clone().

QgsComposerRasterSymbolItem::QgsComposerRasterSymbolItem ( const QString &  text)

Definition at line 241 of file qgscomposerlegenditem.cpp.

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

Definition at line 245 of file qgscomposerlegenditem.cpp.

QgsComposerRasterSymbolItem::~QgsComposerRasterSymbolItem ( )
virtual

Definition at line 249 of file qgscomposerlegenditem.cpp.


Member Function Documentation

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

Definition at line 129 of file qgscomposerlegenditem.h.

Referenced by QgsComposerLegend::drawLayerChildItems().

ItemType QgsComposerRasterSymbolItem::itemType ( ) const
inlinevirtual
QString QgsComposerRasterSymbolItem::layerID ( ) const
inline

Definition at line 125 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 270 of file qgscomposerlegenditem.cpp.

References mColor, setColor(), and setLayerID().

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

Definition at line 128 of file qgscomposerlegenditem.h.

Referenced by readXML().

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

Definition at line 124 of file qgscomposerlegenditem.h.

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

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

Implements QgsComposerLegendItem.

Definition at line 261 of file qgscomposerlegenditem.cpp.

References mColor, and mLayerID.


Member Data Documentation

QColor QgsComposerRasterSymbolItem::mColor
private

Definition at line 133 of file qgscomposerlegenditem.h.

Referenced by readXML(), and writeXML().

QString QgsComposerRasterSymbolItem::mLayerID
private

Definition at line 132 of file qgscomposerlegenditem.h.

Referenced by clone(), and writeXML().


The documentation for this class was generated from the following files: