|
Quantum GIS API Documentation
master-693a1fe
|
Item that represents a layer that can be opened with one of the providers. More...
#include <qgsdataitem.h>
Inheritance diagram for QgsLayerItem:
Collaboration diagram for QgsLayerItem:Public Types | |
| enum | LayerType { NoType, Vector, Raster, Point, Line, Polygon, TableLayer, Database, Table } |
Public Member Functions | |
| QgsLayerItem (QgsDataItem *parent, QString name, QString path, QString uri, LayerType layerType, QString providerKey) | |
| virtual bool | equal (const QgsDataItem *other) |
| virtual QString | layerName () const |
| QgsMapLayer::LayerType | mapLayerType () |
| QString | providerKey () |
| QString | uri () |
Static Public Member Functions | |
| static const QIcon & | iconDefault () |
| static const QIcon & | iconLine () |
| static const QIcon & | iconPoint () |
| static const QIcon & | iconPolygon () |
| static const QIcon & | iconRaster () |
| static const QIcon & | iconTable () |
Protected Attributes | |
| LayerType | mLayerType |
| QString | mProviderKey |
| QString | mUri |
Item that represents a layer that can be opened with one of the providers.
Definition at line 155 of file qgsdataitem.h.
Definition at line 159 of file qgsdataitem.h.
| QgsLayerItem::QgsLayerItem | ( | QgsDataItem * | parent, |
| QString | name, | ||
| QString | path, | ||
| QString | uri, | ||
| LayerType | layerType, | ||
| QString | providerKey | ||
| ) |
Definition at line 346 of file qgsdataitem.cpp.
References iconDefault(), iconLine(), iconPoint(), iconPolygon(), iconRaster(), iconTable(), Line, QgsDataItem::mIcon, Point, Polygon, Raster, TableLayer, and Vector.
| bool QgsLayerItem::equal | ( | const QgsDataItem * | other | ) | [virtual] |
Reimplemented from QgsDataItem.
Definition at line 372 of file qgsdataitem.cpp.
References QgsDataItem::mName, QgsDataItem::mPath, mProviderKey, mUri, and QgsDataItem::type().
| const QIcon & QgsLayerItem::iconDefault | ( | ) | [static] |
Definition at line 93 of file qgsdataitem.cpp.
References QgsApplication::getThemeIcon(), and QgsDataItem::icon().
Referenced by QgsLayerItem().
| const QIcon & QgsLayerItem::iconLine | ( | ) | [static] |
Definition at line 53 of file qgsdataitem.cpp.
References QgsApplication::getThemeIcon(), and QgsDataItem::icon().
Referenced by QgsLayerItem().
| const QIcon & QgsLayerItem::iconPoint | ( | ) | [static] |
Definition at line 43 of file qgsdataitem.cpp.
References QgsApplication::getThemeIcon(), and QgsDataItem::icon().
Referenced by QgsLayerItem().
| const QIcon & QgsLayerItem::iconPolygon | ( | ) | [static] |
Definition at line 63 of file qgsdataitem.cpp.
References QgsApplication::getThemeIcon(), and QgsDataItem::icon().
Referenced by QgsLayerItem().
| const QIcon & QgsLayerItem::iconRaster | ( | ) | [static] |
Definition at line 83 of file qgsdataitem.cpp.
References QgsApplication::getThemeIcon(), and QgsDataItem::icon().
Referenced by QgsLayerItem().
| const QIcon & QgsLayerItem::iconTable | ( | ) | [static] |
Definition at line 73 of file qgsdataitem.cpp.
References QgsApplication::getThemeIcon(), and QgsDataItem::icon().
Referenced by QgsLayerItem().
| virtual QString QgsLayerItem::layerName | ( | ) | const [inline, virtual] |
Definition at line 203 of file qgsdataitem.h.
References QgsDataItem::name().
Definition at line 365 of file qgsdataitem.cpp.
References mLayerType, Raster, QgsMapLayer::RasterLayer, and QgsMapLayer::VectorLayer.
Referenced by QgsMimeDataUtils::Uri::Uri().
| QString QgsLayerItem::providerKey | ( | ) | [inline] |
Definition at line 187 of file qgsdataitem.h.
| QString QgsLayerItem::uri | ( | ) | [inline] |
Definition at line 184 of file qgsdataitem.h.
LayerType QgsLayerItem::mLayerType [protected] |
Definition at line 193 of file qgsdataitem.h.
Referenced by mapLayerType().
QString QgsLayerItem::mProviderKey [protected] |
Definition at line 191 of file qgsdataitem.h.
Referenced by equal().
QString QgsLayerItem::mUri [protected] |
Definition at line 192 of file qgsdataitem.h.
Referenced by equal().