QGIS API Documentation  2.6.0-Brighton
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | List of all members
QgsComposerLayerItem Class Reference

#include <qgscomposerlegenditem.h>

Inheritance diagram for QgsComposerLayerItem:
Inheritance graph
[legend]

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
void setShowFeatureCount (bool show)
bool showFeatureCount () const
void setDefaultStyle (double scaleDenominator=-1, QString rule="")
- Public Member Functions inherited from QgsComposerLegendItem
 QgsComposerLegendItem (QgsComposerLegendStyle::Style s=QgsComposerLegendStyle::Undefined)
 QgsComposerLegendItem (const QString &text, QgsComposerLegendStyle::Style s=QgsComposerLegendStyle::Undefined)
 QgsComposerLegendItem (const QIcon &icon, const QString &text, QgsComposerLegendStyle::Style s=QgsComposerLegendStyle::Undefined)
virtual ~QgsComposerLegendItem ()
QgsComposerLegendStyle::Style style () const
void setStyle (QgsComposerLegendStyle::Style style)
virtual QString userText () const
virtual void setUserText (const QString &text)

Additional Inherited Members

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

Constructor & Destructor Documentation

QgsComposerLayerItem::QgsComposerLayerItem ( )
QgsComposerLayerItem::QgsComposerLayerItem ( const QString &  text)
QgsComposerLayerItem::~QgsComposerLayerItem ( )
virtual

Member Function Documentation

QStandardItem * QgsComposerLayerItem::clone ( ) const
virtual

Implements QgsComposerLegendItem.

ItemType QgsComposerLayerItem::itemType ( ) const
inlinevirtual

Implements QgsComposerLegendItem.

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.

void QgsComposerLayerItem::setDefaultStyle ( double  scaleDenominator = -1,
QString  rule = "" 
)
void QgsComposerLayerItem::setLayerID ( const QString &  id)
inline
void QgsComposerLayerItem::setShowFeatureCount ( bool  show)
inline
bool QgsComposerLayerItem::showFeatureCount ( ) const
inline
void QgsComposerLayerItem::writeXML ( QDomElement &  elem,
QDomDocument &  doc 
) const
virtual

Implements QgsComposerLegendItem.


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