26 #include <QTreeWidget>
61 virtual void refresh();
64 virtual QVector<QgsDataItem*> createChildren();
67 virtual void populate();
72 virtual void addChildItem(
QgsDataItem *child,
bool refresh =
false );
75 virtual void deleteChildItem(
QgsDataItem * child );
86 virtual QList<QAction*>
actions() {
return QList<QAction*>(); }
92 virtual bool handleDrop(
const QMimeData * , Qt::DropAction ) {
return false; }
104 { Q_UNUSED( crs );
return false; }
111 static int findItem( QVector<QgsDataItem*> items,
QgsDataItem * item );
118 QVector<QgsDataItem*>
children()
const {
return mChildren; }
119 QIcon
icon()
const {
return mIcon; }
120 QString
name()
const {
return mName; }
121 QString
path()
const {
return mPath; }
140 void emitBeginInsertItems(
QgsDataItem* parent,
int first,
int last );
141 void emitEndInsertItems();
142 void emitBeginRemoveItems(
QgsDataItem* parent,
int first,
int last );
143 void emitEndRemoveItems();
146 void beginInsertItems(
QgsDataItem* parent,
int first,
int last );
147 void endInsertItems();
148 void beginRemoveItems(
QgsDataItem* parent,
int first,
int last );
149 void endRemoveItems();
170 QgsLayerItem(
QgsDataItem* parent, QString name, QString path, QString uri, LayerType layerType, QString providerKey );
182 QString
uri() {
return mUri; }
194 static const QIcon &iconPoint();
195 static const QIcon &iconLine();
196 static const QIcon &iconPolygon();
197 static const QIcon &iconTable();
198 static const QIcon &iconRaster();
199 static const QIcon &iconDefault();
216 static const QIcon &iconDir();
217 static const QIcon &iconDataCollection();
273 void mousePressEvent( QMouseEvent* event );
276 void showHideColumn();
289 void addDirectory( QString favIcon );
292 static const QIcon &iconFavourites();
309 const QStringList & getZipFileList();
319 static const QIcon &iconZip();
323 #endif // QGSDATAITEM_H