| 
    Quantum GIS API Documentation
    1.7.4
    
   
   | 
  
  
  
 
#include <qgscomposerlegenditem.h>


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 | 
Definition at line 136 of file qgscomposerlegenditem.h.
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.
| 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] | 
        
Definition at line 150 of file qgscomposerlegenditem.h.
Referenced by QgsComposerLegend::drawLayerItem(), QgsLegendModel::removeLayer(), QgsLegendModel::setLayerSetAndGroups(), and QgsLegendModel::updateLayer().
| void QgsComposerLayerItem::readXML | ( | const QDomElement & | itemElem, | 
| bool | xServerAvailable = true  | 
        ||
| ) |  [virtual] | 
        
Read item content from xml.
| itemElem | item to read from | 
| xServerAvailable | Read 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] | 
        
Implements QgsComposerLegendItem.
Definition at line 310 of file qgscomposerlegenditem.cpp.
References mLayerID, and QgsComposerLegendItem::writeXMLChildren().
QString QgsComposerLayerItem::mLayerID [private] | 
        
Definition at line 153 of file qgscomposerlegenditem.h.
Referenced by clone(), and writeXML().
 1.7.6.1