QGIS API Documentation
2.0.1-Dufour
|
base class for all items in the model More...
#include <qgscptcityarchive.h>
Public Types | |
enum | Type { ColorRamp, Collection, Directory, Selection, AllRamps } |
Public Slots | |
void | emitBeginInsertItems (QgsCptCityDataItem *parent, int first, int last) |
void | emitEndInsertItems () |
void | emitBeginRemoveItems (QgsCptCityDataItem *parent, int first, int last) |
void | emitEndRemoveItems () |
Signals | |
void | beginInsertItems (QgsCptCityDataItem *parent, int first, int last) |
void | endInsertItems () |
void | beginRemoveItems (QgsCptCityDataItem *parent, int first, int last) |
void | endRemoveItems () |
Public Member Functions | |
QgsCptCityDataItem (QgsCptCityDataItem::Type type, QgsCptCityDataItem *parent, QString name, QString path) | |
virtual | ~QgsCptCityDataItem () |
bool | hasChildren () |
int | rowCount () |
virtual int | leafCount () const |
virtual void | refresh () |
virtual QVector < QgsCptCityDataItem * > | createChildren () |
virtual void | populate () |
bool | isPopulated () |
virtual void | addChildItem (QgsCptCityDataItem *child, bool refresh=false) |
virtual void | deleteChildItem (QgsCptCityDataItem *child) |
virtual QgsCptCityDataItem * | removeChildItem (QgsCptCityDataItem *child) |
virtual bool | equal (const QgsCptCityDataItem *other) |
virtual QWidget * | paramWidget () |
virtual QList< QAction * > | actions () |
virtual bool | acceptDrop () |
virtual bool | handleDrop (const QMimeData *, Qt::DropAction) |
Type | type () const |
QgsCptCityDataItem * | parent () const |
void | setParent (QgsCptCityDataItem *parent) |
QVector< QgsCptCityDataItem * > | children () const |
virtual QIcon | icon () |
virtual QIcon | icon (const QSize &size) |
QString | name () const |
QString | path () const |
QString | info () const |
QString | shortInfo () const |
void | setIcon (QIcon icon) |
void | setToolTip (QString msg) |
QString | toolTip () const |
bool | isValid () |
Static Public Member Functions | |
static int | findItem (QVector< QgsCptCityDataItem * > items, QgsCptCityDataItem *item) |
Protected Attributes | |
Type | mType |
QgsCptCityDataItem * | mParent |
QVector< QgsCptCityDataItem * > | mChildren |
bool | mPopulated |
QString | mName |
QString | mPath |
QString | mInfo |
QString | mShortInfo |
QString | mToolTip |
QIcon | mIcon |
bool | mValid |
base class for all items in the model
Definition at line 84 of file qgscptcityarchive.h.
Definition at line 88 of file qgscptcityarchive.h.
QgsCptCityDataItem::QgsCptCityDataItem | ( | QgsCptCityDataItem::Type | type, |
QgsCptCityDataItem * | parent, | ||
QString | name, | ||
QString | path | ||
) |
Definition at line 496 of file qgscptcityarchive.cpp.
|
virtual |
Definition at line 504 of file qgscptcityarchive.cpp.
|
inlinevirtual |
Definition at line 137 of file qgscptcityarchive.h.
|
inlinevirtual |
Definition at line 134 of file qgscptcityarchive.h.
|
virtual |
Definition at line 579 of file qgscptcityarchive.cpp.
References beginInsertItems(), beginRemoveItems(), ColorRamp, emitBeginInsertItems(), emitBeginRemoveItems(), emitEndInsertItems(), emitEndRemoveItems(), endInsertItems(), endRemoveItems(), mChildren, mName, mType, QgsDebugMsg, and type().
Referenced by populate(), and refresh().
|
signal |
Referenced by addChildItem(), emitBeginInsertItems(), and removeChildItem().
|
signal |
Referenced by addChildItem(), deleteChildItem(), emitBeginRemoveItems(), and removeChildItem().
|
inline |
Definition at line 152 of file qgscptcityarchive.h.
Referenced by QgsCptCityCollectionItem::childrenRamps(), createChildren(), QgsCptCityDirectoryItem::createChildren(), QgsCptCitySelectionItem::createChildren(), QgsCptCityAllRampsItem::createChildren(), QgsCptCityBrowserModel::findItem(), QgsCptCityBrowserModel::index(), and populate().
|
virtual |
Reimplemented in QgsCptCityAllRampsItem, QgsCptCitySelectionItem, and QgsCptCityDirectoryItem.
Definition at line 526 of file qgscptcityarchive.cpp.
References children().
Referenced by populate(), and refresh().
|
virtual |
Definition at line 620 of file qgscptcityarchive.cpp.
References beginRemoveItems(), endRemoveItems(), and mChildren.
Referenced by refresh().
|
slot |
Definition at line 509 of file qgscptcityarchive.cpp.
References beginInsertItems().
Referenced by addChildItem(), and removeChildItem().
|
slot |
Definition at line 517 of file qgscptcityarchive.cpp.
References beginRemoveItems().
Referenced by addChildItem(), and removeChildItem().
|
slot |
Definition at line 513 of file qgscptcityarchive.cpp.
References endInsertItems().
Referenced by addChildItem(), and removeChildItem().
|
slot |
Definition at line 521 of file qgscptcityarchive.cpp.
References endRemoveItems().
Referenced by addChildItem(), and removeChildItem().
|
signal |
Referenced by addChildItem(), emitEndInsertItems(), and removeChildItem().
|
signal |
Referenced by addChildItem(), deleteChildItem(), emitEndRemoveItems(), and removeChildItem().
|
virtual |
Reimplemented in QgsCptCitySelectionItem, QgsCptCityDirectoryItem, and QgsCptCityColorRampItem.
Definition at line 698 of file qgscptcityarchive.cpp.
Referenced by findItem().
|
static |
|
inlinevirtual |
Definition at line 140 of file qgscptcityarchive.h.
bool QgsCptCityDataItem::hasChildren | ( | ) |
Definition at line 574 of file qgscptcityarchive.cpp.
References mChildren, and mPopulated.
Referenced by QgsCptCityBrowserModel::hasChildren().
|
inlinevirtual |
Reimplemented in QgsCptCityColorRampItem.
Definition at line 153 of file qgscptcityarchive.h.
Referenced by QgsCptCityBrowserModel::data().
|
inlinevirtual |
Reimplemented in QgsCptCityColorRampItem.
Definition at line 154 of file qgscptcityarchive.h.
References icon().
Referenced by icon().
|
inline |
Definition at line 157 of file qgscptcityarchive.h.
Referenced by QgsCptCityBrowserModel::data().
|
inline |
Definition at line 116 of file qgscptcityarchive.h.
Referenced by QgsCptCityBrowserModel::canFetchMore().
|
inline |
Definition at line 165 of file qgscptcityarchive.h.
Referenced by QgsCptCityCollectionItem::childrenRamps(), QgsCptCityDirectoryItem::createChildren(), QgsCptCitySelectionItem::createChildren(), QgsCptCityDirectoryItem::dataItem(), and QgsCptCityArchive::QgsCptCityArchive().
|
virtual |
Reimplemented in QgsCptCityColorRampItem.
Definition at line 559 of file qgscptcityarchive.cpp.
References leafCount(), mChildren, and mPopulated.
Referenced by leafCount().
|
inline |
Definition at line 155 of file qgscptcityarchive.h.
Referenced by QgsCptCityBrowserModel::data().
|
inlinevirtual |
Definition at line 131 of file qgscptcityarchive.h.
|
inline |
Definition at line 150 of file qgscptcityarchive.h.
Referenced by QgsCptCityBrowserModel::parent().
|
inline |
Definition at line 156 of file qgscptcityarchive.h.
Referenced by QgsCptCityBrowserModel::beginInsertItems(), QgsCptCityBrowserModel::beginRemoveItems(), QgsCptCityCollectionItem::childrenRamps(), QgsCptCityBrowserModel::data(), equal(), QgsCptCityDirectoryItem::equal(), QgsCptCitySelectionItem::equal(), QgsCptCityBrowserModel::fetchMore(), QgsCptCityBrowserModel::findPath(), QgsCptCityColorRampItem::init(), and QgsCptCityBrowserModel::refresh().
|
virtual |
Definition at line 532 of file qgscptcityarchive.cpp.
References addChildItem(), children(), createChildren(), mPath, mPopulated, and QgsDebugMsg.
Referenced by QgsCptCityBrowserModel::canFetchMore(), QgsCptCityCollectionItem::childrenRamps(), and QgsCptCityBrowserModel::fetchMore().
|
virtual |
Definition at line 662 of file qgscptcityarchive.cpp.
References addChildItem(), createChildren(), deleteChildItem(), findItem(), mChildren, mPath, and QgsDebugMsg.
Referenced by QgsCptCityBrowserModel::refresh().
|
virtual |
Definition at line 631 of file qgscptcityarchive.cpp.
References beginInsertItems(), beginRemoveItems(), emitBeginInsertItems(), emitBeginRemoveItems(), emitEndInsertItems(), emitEndRemoveItems(), endInsertItems(), endRemoveItems(), mChildren, and setParent().
int QgsCptCityDataItem::rowCount | ( | ) |
Definition at line 552 of file qgscptcityarchive.cpp.
References mChildren.
Referenced by QgsCptCityBrowserModel::rowCount().
|
inline |
Definition at line 160 of file qgscptcityarchive.h.
References icon().
|
inline |
Definition at line 151 of file qgscptcityarchive.h.
Referenced by removeChildItem().
|
inline |
Definition at line 162 of file qgscptcityarchive.h.
|
inline |
Definition at line 158 of file qgscptcityarchive.h.
|
inline |
Definition at line 163 of file qgscptcityarchive.h.
Referenced by QgsCptCityBrowserModel::data().
|
inline |
Definition at line 149 of file qgscptcityarchive.h.
Referenced by addChildItem(), QgsCptCityBrowserModel::canFetchMore(), QgsCptCityBrowserModel::data(), QgsCptCityColorRampItem::equal(), QgsCptCityDirectoryItem::equal(), QgsCptCitySelectionItem::equal(), and QgsCptCityBrowserModel::findPath().
|
protected |
Definition at line 171 of file qgscptcityarchive.h.
Referenced by addChildItem(), QgsCptCityCollectionItem::childrenRamps(), deleteChildItem(), hasChildren(), leafCount(), refresh(), removeChildItem(), rowCount(), and QgsCptCityCollectionItem::~QgsCptCityCollectionItem().
|
protected |
Definition at line 178 of file qgscptcityarchive.h.
|
protected |
Definition at line 175 of file qgscptcityarchive.h.
Referenced by QgsCptCityColorRampItem::icon(), QgsCptCityColorRampItem::init(), QgsCptCitySelectionItem::parseXML(), and QgsCptCityDirectoryItem::QgsCptCityDirectoryItem().
|
protected |
Definition at line 173 of file qgscptcityarchive.h.
Referenced by addChildItem(), QgsCptCityDirectoryItem::createChildren(), QgsCptCitySelectionItem::createChildren(), QgsCptCityColorRampItem::equal(), QgsCptCityColorRampItem::init(), and QgsCptCitySelectionItem::parseXML().
|
protected |
Definition at line 170 of file qgscptcityarchive.h.
|
protected |
Definition at line 174 of file qgscptcityarchive.h.
Referenced by QgsCptCityDirectoryItem::createChildren(), QgsCptCitySelectionItem::createChildren(), QgsCptCityDirectoryItem::dirEntries(), equal(), QgsCptCityColorRampItem::equal(), QgsCptCitySelectionItem::parseXML(), populate(), QgsCptCityDirectoryItem::QgsCptCityDirectoryItem(), QgsCptCityDirectoryItem::rampsMap(), and refresh().
|
protected |
Definition at line 172 of file qgscptcityarchive.h.
Referenced by hasChildren(), leafCount(), populate(), and QgsCptCityColorRampItem::QgsCptCityColorRampItem().
|
protected |
Definition at line 176 of file qgscptcityarchive.h.
Referenced by QgsCptCityColorRampItem::init().
|
protected |
Definition at line 177 of file qgscptcityarchive.h.
|
protected |
Definition at line 169 of file qgscptcityarchive.h.
Referenced by addChildItem(), QgsCptCityAllRampsItem::QgsCptCityAllRampsItem(), QgsCptCityDirectoryItem::QgsCptCityDirectoryItem(), and QgsCptCitySelectionItem::QgsCptCitySelectionItem().
|
protected |
Definition at line 179 of file qgscptcityarchive.h.
Referenced by QgsCptCityDirectoryItem::createChildren(), QgsCptCitySelectionItem::createChildren(), QgsCptCityAllRampsItem::createChildren(), QgsCptCityColorRampItem::icon(), QgsCptCityColorRampItem::init(), QgsCptCityAllRampsItem::QgsCptCityAllRampsItem(), QgsCptCityDirectoryItem::QgsCptCityDirectoryItem(), and QgsCptCitySelectionItem::QgsCptCitySelectionItem().