QGIS API Documentation 3.28.0-Firenze (ed3ad0430f)
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
20
21#include "ui_qgsvectortilelayerpropertiesbase.h"
22
24
25class QgsMapLayer;
26class QgsMapCanvas;
27class QgsMessageBar;
28class QgsVectorTileBasicLabelingWidget;
29class QgsVectorTileBasicRendererWidget;
32
33
40class GUI_EXPORT QgsVectorTileLayerProperties : public QgsOptionsDialogBase, private Ui::QgsVectorTileLayerPropertiesBase
41{
42 Q_OBJECT
43 public:
45 QgsVectorTileLayerProperties( QgsVectorTileLayer *lyr, QgsMapCanvas *canvas, QgsMessageBar *messageBar, QWidget *parent = nullptr, Qt::WindowFlags = QgsGuiUtils::ModalDialogFlags );
46
47 private slots:
48 void apply();
49 void onCancel();
50
51 void loadDefaultStyle();
52 void saveDefaultStyle();
53 void loadStyle();
54 void saveStyleAs();
55 void aboutToShowStyleMenu();
56 void loadMetadata();
57 void saveMetadataAs();
58 void showHelp();
59 void urlClicked( const QUrl &url );
60
61 protected slots:
62 void optionsStackedWidget_CurrentChanged( int index ) override SIP_SKIP ;
63
64 private:
65 void syncToLayer();
66
67 private:
68 QgsVectorTileLayer *mLayer = nullptr;
69
70 QgsVectorTileBasicRendererWidget *mRendererWidget = nullptr;
71 QgsVectorTileBasicLabelingWidget *mLabelingWidget = nullptr;
72
73 QPushButton *mBtnStyle = nullptr;
74 QPushButton *mBtnMetadata = nullptr;
75 QAction *mActionLoadMetadata = nullptr;
76 QAction *mActionSaveMetadataAs = nullptr;
77
78 QgsMapCanvas *mMapCanvas = nullptr;
79 QgsMetadataWidget *mMetadataWidget = nullptr;
80
85 QgsMapLayerStyle mOldStyle;
86};
87
88#endif // QGSVECTORTILELAYERPROPERTIES_H
Map canvas is a class for displaying all GIS data types on a canvas.
Definition: qgsmapcanvas.h:90
Stores style information (renderer, opacity, labeling, diagrams etc.) applicable to a map layer.
Base class for all map layer types.
Definition: qgsmaplayer.h:73
A bar for displaying non-blocking messages to the user.
Definition: qgsmessagebar.h:61
A wizard to edit metadata on a map layer.
A base dialog for options and properties dialogs that offers vertical tabs.
virtual void optionsStackedWidget_CurrentChanged(int index)
Select relevant tab on current page change.
Vectortile layer properties dialog.
Implements a map layer that is dedicated to rendering of vector tiles.
#define SIP_SKIP
Definition: qgis_sip.h:126