QGIS API Documentation 3.41.0-Master (3440c17df1d)
Loading...
Searching...
No Matches
qgsvectortileconnectiondialog.h
Go to the documentation of this file.
1/***************************************************************************
2 qgsvectortileconnectiondialog.h
3 ---------------------
4 begin : March 2020
5 copyright : (C) 2020 by Martin Dobias
6 email : wonder dot sk at gmail dot com
7 ***************************************************************************
8 * *
9 * This program is free software; you can redistribute it and/or modify *
10 * it under the terms of the GNU General Public License as published by *
11 * the Free Software Foundation; either version 2 of the License, or *
12 * (at your option) any later version. *
13 * *
14 ***************************************************************************/
15
16#ifndef QGSVECTORTILECONNECTIONDIALOG_H
17#define QGSVECTORTILECONNECTIONDIALOG_H
18
20#define SIP_NO_FILE
21
22#include <QDialog>
23
24#include "ui_qgsvectortileconnectiondialog.h"
25
27
28class QgsVectorTileConnectionDialog : public QDialog, public Ui::QgsVectorTileConnectionDialog
29{
30 Q_OBJECT
31 public:
32 enum class LoadingMode : int
33 {
34 Url,
35 Style
36 };
37 Q_ENUM( LoadingMode )
38
40
41 explicit QgsVectorTileConnectionDialog( QWidget *parent = nullptr );
42
43 void setConnection( const QString &name, const QString &uri );
44
45 QString connectionUri() const;
46 QString connectionName() const;
47
48 void accept() override;
49
50 private slots:
51 void updateOkButtonState();
52};
53
55
56#endif // QGSVECTORTILECONNECTIONDIALOG_H
A template class for enum and flag settings entry.