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

Item that represents a layer that can be opened with one of the providers. More...

#include <qgsdataitem.h>

Inheritance diagram for QgsLayerItem:
Inheritance graph
[legend]

Public Types

enum  LayerType {
  NoType, Vector, Raster, Point,
  Line, Polygon, TableLayer, Database,
  Table
}
- Public Types inherited from QgsDataItem
enum  Type {
  Collection, Directory, Layer, Error,
  Favourites
}
enum  Capability { NoCapabilities = 0, SetCrs = 1 }

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
- Public Member Functions inherited from QgsDataItem
 QgsDataItem (QgsDataItem::Type type, QgsDataItem *parent, QString name, QString path)
virtual ~QgsDataItem ()
bool hasChildren ()
int rowCount ()
virtual void refresh ()
virtual QVector< QgsDataItem * > createChildren ()
virtual void populate ()
bool isPopulated ()
virtual void addChildItem (QgsDataItem *child, bool refresh=false)
virtual void deleteChildItem (QgsDataItem *child)
virtual QgsDataItemremoveChildItem (QgsDataItem *child)
virtual QWidget * paramWidget ()
virtual QList< QAction * > actions ()
virtual bool acceptDrop ()
virtual bool handleDrop (const QMimeData *, Qt::DropAction)
virtual bool setCrs (QgsCoordinateReferenceSystem crs)
virtual Capability capabilities ()
Type type () const
QgsDataItemparent () const
void setParent (QgsDataItem *parent)
QVector< QgsDataItem * > children () const
QIcon icon () const
QString name () const
QString path () const
void setIcon (QIcon icon)
void setToolTip (QString msg)
QString toolTip () 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 ()
- Static Public Member Functions inherited from QgsDataItem
static int findItem (QVector< QgsDataItem * > items, QgsDataItem *item)

Protected Attributes

QString mProviderKey
QString mUri
LayerType mLayerType
- Protected Attributes inherited from QgsDataItem
Type mType
QgsDataItemmParent
QVector< QgsDataItem * > mChildren
bool mPopulated
QString mName
QString mPath
QString mToolTip
QIcon mIcon

Additional Inherited Members

- Public Slots inherited from QgsDataItem
void emitBeginInsertItems (QgsDataItem *parent, int first, int last)
void emitEndInsertItems ()
void emitBeginRemoveItems (QgsDataItem *parent, int first, int last)
void emitEndRemoveItems ()
- Signals inherited from QgsDataItem
void beginInsertItems (QgsDataItem *parent, int first, int last)
void endInsertItems ()
void beginRemoveItems (QgsDataItem *parent, int first, int last)
void endRemoveItems ()

Detailed Description

Item that represents a layer that can be opened with one of the providers.

Member Enumeration Documentation

Enumerator:
NoType 
Vector 
Raster 
Point 
Line 
Polygon 
TableLayer 
Database 
Table 

Constructor & Destructor Documentation

QgsLayerItem::QgsLayerItem ( QgsDataItem parent,
QString  name,
QString  path,
QString  uri,
LayerType  layerType,
QString  providerKey 
)

Member Function Documentation

bool QgsLayerItem::equal ( const QgsDataItem other)
virtual

Reimplemented from QgsDataItem.

const QIcon & QgsLayerItem::iconDefault ( )
static
const QIcon & QgsLayerItem::iconLine ( )
static
const QIcon & QgsLayerItem::iconPoint ( )
static
const QIcon & QgsLayerItem::iconPolygon ( )
static
const QIcon & QgsLayerItem::iconRaster ( )
static
const QIcon & QgsLayerItem::iconTable ( )
static
virtual QString QgsLayerItem::layerName ( ) const
inlinevirtual
QgsMapLayer::LayerType QgsLayerItem::mapLayerType ( )
QString QgsLayerItem::providerKey ( )
inline
QString QgsLayerItem::uri ( )
inline

Member Data Documentation

LayerType QgsLayerItem::mLayerType
protected
QString QgsLayerItem::mProviderKey
protected
QString QgsLayerItem::mUri
protected

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