Quantum GIS API Documentation  1.8
Public Member Functions | Private Attributes
QgsComposerLayerItem Class Reference

#include <qgscomposerlegenditem.h>

Inheritance diagram for QgsComposerLayerItem:
Inheritance graph
Collaboration diagram for QgsComposerLayerItem:
Collaboration graph

List of all members.

Public Member Functions

 QgsComposerLayerItem ()
 QgsComposerLayerItem (const QString &text)
virtual ~QgsComposerLayerItem ()
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.
ItemType itemType () const
void setLayerID (const QString &id)
QString layerID () const

Private Attributes

QString mLayerID

Detailed Description

Definition at line 136 of file qgscomposerlegenditem.h.

Constructor & Destructor Documentation

Definition at line 290 of file qgscomposerlegenditem.cpp.

Referenced by clone().

QgsComposerLayerItem::QgsComposerLayerItem ( const QString &  text)

Definition at line 294 of file qgscomposerlegenditem.cpp.

Definition at line 298 of file qgscomposerlegenditem.cpp.

Member Function Documentation

QStandardItem * QgsComposerLayerItem::clone ( ) const [virtual]

Implements QgsComposerLegendItem.

Definition at line 302 of file qgscomposerlegenditem.cpp.

References mLayerID, QgsComposerLayerItem(), and setLayerID().

ItemType QgsComposerLayerItem::itemType ( ) const [inline, virtual]

Implements QgsComposerLegendItem.

Definition at line 147 of file qgscomposerlegenditem.h.

References QgsComposerLegendItem::LayerItem.

QString QgsComposerLayerItem::layerID ( ) const [inline]
void QgsComposerLayerItem::readXML ( const QDomElement &  itemElem,
bool  xServerAvailable = true 
) [virtual]

Read item content from xml.

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

Implements QgsComposerLegendItem.

Definition at line 319 of file qgscomposerlegenditem.cpp.

References QgsComposerLegendItem::readXML(), and setLayerID().

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

Definition at line 149 of file qgscomposerlegenditem.h.

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

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

Member Data Documentation

QString QgsComposerLayerItem::mLayerID [private]

Definition at line 153 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 Friends Defines