-
Notifications
You must be signed in to change notification settings - Fork 1
/
qgssossourceselect.h
51 lines (43 loc) · 2.05 KB
/
qgssossourceselect.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
/***************************************************************************
qgssossourceselect.h - description
------------------------------------
begin : June 2013
copyright : (C) 2013 by Marco Hugentobler
email : marco dot hugentobler at sourcepole dot ch
***************************************************************************/
/***************************************************************************
* *
* 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. *
* *
***************************************************************************/
/**Dialog to connect to sensor observation services and to load layers*/
#include "ui_qgssossourceselectbase.h"
#include <QStandardItemModel>
#include <QSortFilterProxyModel>
class QgsSOSCapabilities;
class QgisInterface;
class QgsSOSSourceSelect: public QDialog, private Ui::QgsSOSSourceSelectBase
{
Q_OBJECT
public:
QgsSOSSourceSelect( QgisInterface* iface, QWidget* parent = 0, Qt::WindowFlags fl = 0 );
~QgsSOSSourceSelect();
private slots:
void on_mConnectButton_clicked();
void on_mNewButton_clicked();
void on_mEditButton_clicked();
void on_mDeleteButton_clicked();
void on_mFilterLineEdit_textChanged( const QString& text );
void gotCapabilities();
void addLayer();
private:
QgsSOSCapabilities* mCapabilities;
QgisInterface* mIface;
QStandardItemModel mOfferingsModel;
QSortFilterProxyModel mFilterModel;
void populateConnectionList();
void showConnectionDialog( const QString& connectionName = QString(), const QString& connectionUrl = QString() );
};