QGIS API Documentation
4.3.0-Master (8c22baaae17)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
gui
vectortile
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
21
#include "
qgslayerpropertiesdialog.h
"
22
23
class
QgsMapLayer
;
24
class
QgsMapCanvas
;
25
class
QgsMessageBar
;
26
class
QgsVectorTileBasicLabelingWidget;
27
class
QgsVectorTileBasicRendererWidget;
28
class
QgsVectorTileLayer
;
29
class
QgsMetadataWidget
;
30
class
QgsProviderSourceWidget
;
31
32
39
class
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
QgsCoordinateReferenceSystem
Represents a coordinate reference system (CRS).
Definition
qgscoordinatereferencesystem.h:216
QgsLayerPropertiesDialog::saveStyleAs
void saveStyleAs()
Saves a style when appriate button is pressed.
Definition
qgslayerpropertiesdialog.cpp:395
QgsLayerPropertiesDialog::apply
virtual void apply()=0
Applies the dialog settings to the layer.
QgsLayerPropertiesDialog::syncToLayer
virtual void syncToLayer()=0
Resets the dialog to the current layer state.
QgsLayerPropertiesDialog::loadStyle
void loadStyle()
Triggers a dialog to load a saved style.
Definition
qgslayerpropertiesdialog.cpp:487
QgsLayerPropertiesDialog::QgsLayerPropertiesDialog
QgsLayerPropertiesDialog(QgsMapLayer *layer, QgsMapCanvas *canvas, const QString &settingsKey, QWidget *parent=nullptr, Qt::WindowFlags fl=Qt::WindowFlags(), QgsSettings *settings=nullptr)
Constructor for QgsLayerPropertiesDialog.
Definition
qgslayerpropertiesdialog.cpp:44
QgsLayerPropertiesDialog::saveDefaultStyle
void saveDefaultStyle()
Saves the default style when appropriate button is pressed.
Definition
qgslayerpropertiesdialog.cpp:344
QgsMapCanvas
Map canvas is a class for displaying all GIS data types on a canvas.
Definition
qgsmapcanvas.h:96
QgsMapLayer
Base class for all map layer types.
Definition
qgsmaplayer.h:83
QgsMessageBar
A bar for displaying non-blocking messages to the user.
Definition
qgsmessagebar.h:61
QgsMetadataWidget
A wizard to edit metadata on a map layer.
Definition
qgsmetadatawidget.h:42
QgsProviderSourceWidget
Base class for widgets which allow customization of a provider's source URI.
Definition
qgsprovidersourcewidget.h:34
QgsVectorTileLayerProperties::QgsVectorTileLayerProperties
QgsVectorTileLayerProperties(QgsVectorTileLayer *lyr, QgsMapCanvas *canvas, QgsMessageBar *messageBar, QWidget *parent=nullptr, Qt::WindowFlags=QgsGuiUtils::ModalDialogFlags)
Constructor.
Definition
qgsvectortilelayerproperties.cpp:48
QgsVectorTileLayer
Implements a map layer that is dedicated to rendering of vector tiles.
Definition
qgsvectortilelayer.h:94
SIP_DEPRECATED
#define SIP_DEPRECATED
Definition
qgis_sip.h:113
qgslayerpropertiesdialog.h
Generated on
for QGIS API Documentation by
1.17.0