QGIS API Documentation 3.40.0-Bratislava (b56115d8743)
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"
21
22class QgsMapLayer;
23class QgsMapCanvas;
24class QgsMessageBar;
25class QgsVectorTileBasicLabelingWidget;
26class QgsVectorTileBasicRendererWidget;
30
31
38class GUI_EXPORT QgsVectorTileLayerProperties : public QgsLayerPropertiesDialog, private Ui::QgsVectorTileLayerPropertiesBase
39{
40 Q_OBJECT
41 public:
43 QgsVectorTileLayerProperties( QgsVectorTileLayer *lyr, QgsMapCanvas *canvas, QgsMessageBar *messageBar, QWidget *parent = nullptr, Qt::WindowFlags = QgsGuiUtils::ModalDialogFlags );
44
50 Q_DECL_DEPRECATED void saveDefaultStyle() SIP_DEPRECATED;
51
57 void loadStyle();
58
64 Q_DECL_DEPRECATED void saveStyleAs() SIP_DEPRECATED;
65
66 private slots:
67 void apply() FINAL;
68
69 void aboutToShowStyleMenu();
70 void showHelp();
71 void crsChanged( const QgsCoordinateReferenceSystem &crs );
72
73 private:
74 void syncToLayer() FINAL;
75
76 private:
77 QgsVectorTileLayer *mLayer = nullptr;
78
79 QgsVectorTileBasicRendererWidget *mRendererWidget = nullptr;
80 QgsVectorTileBasicLabelingWidget *mLabelingWidget = nullptr;
81
82 QPushButton *mBtnStyle = nullptr;
83 QPushButton *mBtnMetadata = nullptr;
84 QAction *mActionLoadMetadata = nullptr;
85 QAction *mActionSaveMetadataAs = nullptr;
86
87 QgsMetadataWidget *mMetadataWidget = nullptr;
88
89 QgsProviderSourceWidget *mSourceWidget = nullptr;
90
91};
92
93#endif // QGSVECTORTILELAYERPROPERTIES_H
This class represents a coordinate reference system (CRS).
Base class for "layer properties" dialogs, containing common utilities for handling functionality in ...
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.
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:76
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.
Vectortile layer properties dialog.
Implements a map layer that is dedicated to rendering of vector tiles.
#define SIP_DEPRECATED
Definition qgis_sip.h:106
#define FINAL
Definition qgis_sip.h:242
const QgsCoordinateReferenceSystem & crs