QGIS API Documentation 3.99.0-Master (2fe06baccd8)
Loading...
Searching...
No Matches
qgstiledsceneconnectiondialog.h
Go to the documentation of this file.
1/***************************************************************************
2 qgstiledsceneconnectiondialog.h
3 ---------------------
4 begin : June 2023
5 copyright : (C) 2023 by Nyall Dawson
6 email : nyall dot dawson 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 QGSTILEDSCENECONNECTIONDIALOG_H
17#define QGSTILEDSCENECONNECTIONDIALOG_H
18
20#define SIP_NO_FILE
21
22#include "ui_qgstiledsceneconnectiondialog.h"
23
24#include <QDialog>
25
26class QgsTiledSceneConnectionDialog : public QDialog, public Ui::QgsTiledSceneConnectionDialog
27{
28 Q_OBJECT
29 public:
30 explicit QgsTiledSceneConnectionDialog( QWidget *parent = nullptr );
31
32 void setConnection( const QString &name, const QString &uri );
33
34 QString connectionUri() const;
35 QString connectionName() const;
36
37 void accept() override;
38
39 private slots:
40 void updateOkButtonState();
41
42 private:
43 QString mOriginalConnectionName; //store initial name to delete entry in case of rename
44};
45
47
48#endif // QGSTILEDSCENECONNECTIONDIALOG_H