QGIS API Documentation 3.43.0-Master (3ee7834ace6)
qgsmaplayerserverpropertieswidget.h
Go to the documentation of this file.
1/***************************************************************************
2 qgsmaplayerserverpropertieswidget.h
3 ---------------------
4 begin : 2025/02/20
5 copyright : (C) 2025 by Julien Cabieces
6 email : julien dot cabieces at oslandia 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 QGSMAPLAYERSERVERPROPERTIESWIDGET
17#define QGSMAPLAYERSERVERPROPERTIESWIDGET
18
19#include "ui_qgsmaplayerserverpropertieswidgetbase.h"
20#include "qgis_gui.h"
21
22#define SIP_NO_FILE
23
25class QStandardItemModel;
26
35class GUI_EXPORT QgsMapLayerServerPropertiesWidget : public QWidget, private Ui::QgsMapLayerServerPropertiesWidgetBase
36{
37 Q_OBJECT
38
39 public:
44 QgsMapLayerServerPropertiesWidget( QWidget *parent = nullptr );
45
49 void setServerProperties( QgsMapLayerServerProperties *serverProperties );
50
56 void setHasWfsTitle( bool hasWfsTitle );
57
62 bool hasWfsTitle() const;
63
69 bool save();
70
74 void sync();
75
76 private slots:
77
78 void addMetadataUrl();
79 void removeSelectedMetadataUrl();
80
81 private:
82 QgsMapLayerServerProperties *mServerProperties = nullptr;
83 QStandardItemModel *mMetadataUrlModel = nullptr;
84 bool mHasWfsTitle = true;
85};
86
87
88#endif
Provides widget to edit server properties.
Manages QGIS Server properties for a map layer.