Quantum GIS API Documentation
1.8
|
Item that represents a layer that can be opened with one of the providers. More...
#include <qgsdataitem.h>
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) |
QgsMapLayer::LayerType | mapLayerType () |
QString | uri () |
QString | providerKey () |
virtual QString | layerName () const |
Static Public Member Functions | |
static const QIcon & | iconPoint () |
static const QIcon & | iconLine () |
static const QIcon & | iconPolygon () |
static const QIcon & | iconTable () |
static const QIcon & | iconRaster () |
static const QIcon & | iconDefault () |
Protected Attributes | |
QString | mProviderKey |
QString | mUri |
LayerType | mLayerType |
Item that represents a layer that can be opened with one of the providers.
Definition at line 150 of file qgsdataitem.h.
Definition at line 154 of file qgsdataitem.h.
QgsLayerItem::QgsLayerItem | ( | QgsDataItem * | parent, |
QString | name, | ||
QString | path, | ||
QString | uri, | ||
LayerType | layerType, | ||
QString | providerKey | ||
) |
Definition at line 344 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 370 of file qgsdataitem.cpp.
References QgsDataItem::mName, QgsDataItem::mPath, mProviderKey, mUri, and QgsDataItem::type().
const QIcon & QgsLayerItem::iconDefault | ( | ) | [static] |
Definition at line 94 of file qgsdataitem.cpp.
References QgsDataItem::getThemePixmap(), and QgsDataItem::icon().
Referenced by QgsLayerItem().
const QIcon & QgsLayerItem::iconLine | ( | ) | [static] |
Definition at line 54 of file qgsdataitem.cpp.
References QgsDataItem::getThemePixmap(), and QgsDataItem::icon().
Referenced by QgsLayerItem().
const QIcon & QgsLayerItem::iconPoint | ( | ) | [static] |
Definition at line 44 of file qgsdataitem.cpp.
References QgsDataItem::getThemePixmap(), and QgsDataItem::icon().
Referenced by QgsLayerItem().
const QIcon & QgsLayerItem::iconPolygon | ( | ) | [static] |
Definition at line 64 of file qgsdataitem.cpp.
References QgsDataItem::getThemePixmap(), and QgsDataItem::icon().
Referenced by QgsLayerItem().
const QIcon & QgsLayerItem::iconRaster | ( | ) | [static] |
Definition at line 84 of file qgsdataitem.cpp.
References QgsDataItem::getThemePixmap(), and QgsDataItem::icon().
Referenced by QgsLayerItem().
const QIcon & QgsLayerItem::iconTable | ( | ) | [static] |
Definition at line 74 of file qgsdataitem.cpp.
References QgsDataItem::getThemePixmap(), and QgsDataItem::icon().
Referenced by QgsLayerItem().
virtual QString QgsLayerItem::layerName | ( | ) | const [inline, virtual] |
Definition at line 198 of file qgsdataitem.h.
References QgsDataItem::name().
Definition at line 363 of file qgsdataitem.cpp.
References mLayerType, Raster, QgsMapLayer::RasterLayer, and QgsMapLayer::VectorLayer.
Referenced by QgsMimeDataUtils::Uri::Uri().
QString QgsLayerItem::providerKey | ( | ) | [inline] |
Definition at line 182 of file qgsdataitem.h.
Referenced by QgsBrowserModel::flags(), and QgsBrowserModel::mimeData().
QString QgsLayerItem::uri | ( | ) | [inline] |
Definition at line 179 of file qgsdataitem.h.
LayerType QgsLayerItem::mLayerType [protected] |
Definition at line 188 of file qgsdataitem.h.
Referenced by mapLayerType().
QString QgsLayerItem::mProviderKey [protected] |
Definition at line 186 of file qgsdataitem.h.
Referenced by equal().
QString QgsLayerItem::mUri [protected] |
Definition at line 187 of file qgsdataitem.h.
Referenced by equal().