QGIS API Documentation 3.99.0-Master (2fe06baccd8)
Loading...
Searching...
No Matches
qgsvectortilelayerproperties.h
Go to the documentation of this file.
1/***************************************************************************
2 qgsvectortilelayerproperties.h
3 --------------------------------------
4 Date : May 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 QGSVECTORTILELAYERPROPERTIES_H
17#define QGSVECTORTILELAYERPROPERTIES_H
18
19#include "ui_qgsvectortilelayerpropertiesbase.h"
20
22
23class QgsMapLayer;
24class QgsMapCanvas;
25class QgsMessageBar;
26class QgsVectorTileBasicLabelingWidget;
27class QgsVectorTileBasicRendererWidget;
31
32
39class GUI_EXPORT QgsVectorTileLayerProperties : public QgsLayerPropertiesDialog, private Ui::QgsVectorTileLayerPropertiesBase
40{
41 Q_OBJECT
42 public:
44 QgsVectorTileLayerProperties( QgsVectorTileLayer *lyr, QgsMapCanvas *canvas, QgsMessageBar *messageBar, QWidget *parent = nullptr, Qt::WindowFlags = QgsGuiUtils::ModalDialogFlags );
45
51 Q_DECL_DEPRECATED void saveDefaultStyle() SIP_DEPRECATED;
52
58 void loadStyle();
59
65 Q_DECL_DEPRECATED void saveStyleAs() SIP_DEPRECATED;
66
67 private slots:
68 void apply() final;
69
70 void aboutToShowStyleMenu();
71 void showHelp();
72 void crsChanged( const QgsCoordinateReferenceSystem &crs );
73
74 private:
75 void syncToLayer() final;
76
77 private:
78 QgsVectorTileLayer *mLayer = nullptr;
79
80 QgsVectorTileBasicRendererWidget *mRendererWidget = nullptr;
81 QgsVectorTileBasicLabelingWidget *mLabelingWidget = nullptr;
82
83 QPushButton *mBtnStyle = nullptr;
84 QPushButton *mBtnMetadata = nullptr;
85 QAction *mActionLoadMetadata = nullptr;
86 QAction *mActionSaveMetadataAs = nullptr;
87
88 QgsMetadataWidget *mMetadataWidget = nullptr;
89
90 QgsProviderSourceWidget *mSourceWidget = nullptr;
91};
92
93#endif // QGSVECTORTILELAYERPROPERTIES_H
Represents a coordinate reference system (CRS).
void saveStyleAs()
Saves a style when appriate button is pressed.
virtual void apply()=0
Applies the dialog settings to the layer.
virtual void syncToLayer()=0
Resets the dialog to the current layer state.
void loadStyle()
Triggers a dialog to load a saved style.
QgsLayerPropertiesDialog(QgsMapLayer *layer, QgsMapCanvas *canvas, const QString &settingsKey, QWidget *parent=nullptr, Qt::WindowFlags fl=Qt::WindowFlags(), QgsSettings *settings=nullptr)
Constructor for QgsLayerPropertiesDialog.
void saveDefaultStyle()
Saves the default style when appropriate button is pressed.
Map canvas is a class for displaying all GIS data types on a canvas.
Base class for all map layer types.
Definition qgsmaplayer.h:80
A bar for displaying non-blocking messages to the user.
A wizard to edit metadata on a map layer.
Base class for widgets which allow customization of a provider's source URI.
QgsVectorTileLayerProperties(QgsVectorTileLayer *lyr, QgsMapCanvas *canvas, QgsMessageBar *messageBar, QWidget *parent=nullptr, Qt::WindowFlags=QgsGuiUtils::ModalDialogFlags)
Constructor.
Implements a map layer that is dedicated to rendering of vector tiles.
#define SIP_DEPRECATED
Definition qgis_sip.h:114