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
QgsComposerLayerItem Class Reference

#include <qgscomposerlegenditem.h>

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

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
- Public Member Functions inherited from QgsComposerLegendItem
 QgsComposerLegendItem ()
 QgsComposerLegendItem (const QString &text)
 QgsComposerLegendItem (const QIcon &icon, const QString &text)
virtual ~QgsComposerLegendItem ()

Private Attributes

QString mLayerID

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 136 of file qgscomposerlegenditem.h.


Constructor & Destructor Documentation

QgsComposerLayerItem::QgsComposerLayerItem ( )

Definition at line 290 of file qgscomposerlegenditem.cpp.

Referenced by clone().

QgsComposerLayerItem::QgsComposerLayerItem ( const QString &  text)

Definition at line 294 of file qgscomposerlegenditem.cpp.

QgsComposerLayerItem::~QgsComposerLayerItem ( )
virtual

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
inlinevirtual

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.

Parameters:
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: