QGIS API Documentation
2.6.0-Brighton
|
base class for all items in the model More...
#include <qgsdataitem.h>
Public Types | |
enum | Type { Collection, Directory, Layer, Error, Favourites } |
enum | Capability { NoCapabilities = 0, SetCrs = 1 } |
Public Slots | |
void | emitBeginInsertItems (QgsDataItem *parent, int first, int last) |
void | emitEndInsertItems () |
void | emitBeginRemoveItems (QgsDataItem *parent, int first, int last) |
void | emitEndRemoveItems () |
Signals | |
void | beginInsertItems (QgsDataItem *parent, int first, int last) |
void | endInsertItems () |
void | beginRemoveItems (QgsDataItem *parent, int first, int last) |
void | endRemoveItems () |
Public Member Functions | |
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 QgsDataItem * | removeChildItem (QgsDataItem *child) |
virtual bool | equal (const QgsDataItem *other) |
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 |
QgsDataItem * | parent () 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 int | findItem (QVector< QgsDataItem * > items, QgsDataItem *item) |
Protected Attributes | |
Type | mType |
QgsDataItem * | mParent |
QVector< QgsDataItem * > | mChildren |
bool | mPopulated |
QString | mName |
QString | mPath |
QString | mToolTip |
QIcon | mIcon |
base class for all items in the model
enum QgsDataItem::Type |
QgsDataItem::QgsDataItem | ( | QgsDataItem::Type | type, |
QgsDataItem * | parent, | ||
QString | name, | ||
QString | path | ||
) |
|
virtual |
|
inlinevirtual |
|
inlinevirtual |
|
virtual |
|
signal |
|
signal |
|
inlinevirtual |
|
inline |
|
virtual |
Reimplemented in QgsZipItem, QgsFavouritesItem, and QgsDirectoryItem.
|
virtual |
|
slot |
|
slot |
|
slot |
|
slot |
|
signal |
|
signal |
|
virtual |
Reimplemented in QgsDirectoryItem, and QgsLayerItem.
|
static |
|
inlinevirtual |
bool QgsDataItem::hasChildren | ( | ) |
|
inline |
|
inline |
|
inline |
|
inlinevirtual |
Reimplemented in QgsDirectoryItem.
|
inline |
|
inline |
|
virtual |
|
virtual |
|
virtual |
int QgsDataItem::rowCount | ( | ) |
|
inlinevirtual |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |