This repository has been archived by the owner on Sep 13, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathqgsvirtuallayersourceselect.h
57 lines (44 loc) · 2 KB
/
qgsvirtuallayersourceselect.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
57
/***************************************************************************
qgsvirtuallayersourceselect.cpp
Virtual layer data provider selection widget
begin : Feb, 2015
copyright : (C) 2015 Hugo Mercier, Oslandia
email : hugo dot mercier at oslandia dot com
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef QGSVIRTUAL_LAYER_SOURCE_SELECT_H
#define QGSVIRTUAL_LAYER_SOURCE_SELECT_H
#include "ui_qgsvirtuallayersourceselectbase.h"
#include <qgis.h>
#include <qgisgui.h>
class QgsVectorLayer;
class QMainWindow;
class QgsVirtualLayerSourceSelect : public QDialog, private Ui::QgsVirtualLayerSourceSelectBase
{
Q_OBJECT
public:
QgsVirtualLayerSourceSelect( QWidget * parent, Qt::WindowFlags fl = QgisGui::ModalDialogFlags );
~QgsVirtualLayerSourceSelect();
static QMainWindow* sMainApp;
void addSource( const QString& name, const QString& source, const QString& provider, const QString& encoding );
void setQuery( const QString& q );
void setUid( const QString& uid );
void setLayerName( const QString& name );
void setGeometryColumn( const QString& uid );
void setFilename( const QString& );
private slots:
void on_buttonBox_accepted();
void onAddSource();
void onRemoveSource();
void onBrowse();
signals:
void addVectorLayer( QString, QString, QString );
};
#endif