26 #include <QTreeWidget>
63 virtual void refresh();
66 virtual QVector<QgsDataItem*> createChildren();
69 virtual void populate();
74 virtual void addChildItem(
QgsDataItem * child,
bool refresh =
false );
77 virtual void deleteChildItem(
QgsDataItem * child );
88 virtual QList<QAction*>
actions() {
return QList<QAction*>(); }
94 virtual bool handleDrop(
const QMimeData * , Qt::DropAction ) {
return false; }
106 { Q_UNUSED( crs );
return false; }
113 static int findItem( QVector<QgsDataItem*> items,
QgsDataItem * item );
120 QVector<QgsDataItem*>
children()
const {
return mChildren; }
121 QIcon
icon()
const {
return mIcon; }
122 QString
name()
const {
return mName; }
123 QString
path()
const {
return mPath; }
142 void emitBeginInsertItems(
QgsDataItem* parent,
int first,
int last );
143 void emitEndInsertItems();
144 void emitBeginRemoveItems(
QgsDataItem* parent,
int first,
int last );
145 void emitEndRemoveItems();
148 void beginInsertItems(
QgsDataItem* parent,
int first,
int last );
149 void endInsertItems();
150 void beginRemoveItems(
QgsDataItem* parent,
int first,
int last );
151 void endRemoveItems();
172 QgsLayerItem(
QgsDataItem* parent, QString name, QString path, QString uri, LayerType layerType, QString providerKey );
184 QString
uri() {
return mUri; }
196 static const QIcon &iconPoint();
197 static const QIcon &iconLine();
198 static const QIcon &iconPolygon();
199 static const QIcon &iconTable();
200 static const QIcon &iconRaster();
201 static const QIcon &iconDefault();
218 static const QIcon &iconDir();
219 static const QIcon &iconDataCollection();
277 void mousePressEvent( QMouseEvent* event );
280 void showHideColumn();
293 void addDirectory( QString favIcon );
296 static const QIcon &iconFavourites();
313 const QStringList & getZipFileList();
319 static QString vsiPrefix( QString uri );
323 static const QIcon &iconZip();
327 #endif // QGSDATAITEM_H