-
-
Notifications
You must be signed in to change notification settings - Fork 3k
/
qgsspatialitedataitems.h
56 lines (42 loc) · 1.23 KB
/
qgsspatialitedataitems.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#ifndef QGSSPATIALITEDATAITEMS_H
#define QGSSPATIALITEDATAITEMS_H
#include "qgsdataitem.h"
class QgsSLLayerItem : public QgsLayerItem
{
public:
QgsSLLayerItem( QgsDataItem* parent, QString name, QString path, QString uri, LayerType layerType )
: QgsLayerItem( parent, name, path, uri, layerType, "spatialite" )
{
mPopulated = true; // no children are expected
}
};
class QgsSLConnectionItem : public QgsDataCollectionItem
{
Q_OBJECT
public:
QgsSLConnectionItem( QgsDataItem* parent, QString name, QString path );
~QgsSLConnectionItem();
QVector<QgsDataItem*> createChildren();
virtual bool equal( const QgsDataItem *other );
virtual QList<QAction*> actions();
public slots:
void editConnection();
void deleteConnection();
protected:
QString mDbPath;
};
class QgsSLRootItem : public QgsDataCollectionItem
{
Q_OBJECT
public:
QgsSLRootItem( QgsDataItem* parent, QString name, QString path );
~QgsSLRootItem();
QVector<QgsDataItem*> createChildren();
virtual QWidget * paramWidget();
virtual QList<QAction*> actions();
public slots:
void connectionsChanged();
void newConnection();
void createDatabase();
};
#endif // QGSSPATIALITEDATAITEMS_H