16#ifndef QGSLAYERPROPERTIESDIALOG_H
17#define QGSLAYERPROPERTIESDIALOG_H
88 void saveDefaultStyle();
111 void loadMetadataFromFile();
118 void saveMetadataToFile();
125 void saveMetadataAsDefault();
132 void loadDefaultMetadata();
139 void loadStyleFromFile();
146 void saveStyleToFile();
153 void saveStyleAsDefault();
158 void loadDefaultStyle();
171 void refocusDialog();
176 void storeCurrentStyleForUndo();
223 void openUrl( const QUrl &url );
230 QString generateDialogTitle() const;
235 QWidget *mMetadataPage =
nullptr;
Base class for "layer properties" dialogs, containing common utilities for handling functionality in ...
QPushButton * mBtnStyle
Style button.
virtual void rollback()
Rolls back changes made to the layer.
void optionsStackedWidget_CurrentChanged(int index) override
StyleType
Style storage type.
QList< QgsMapLayerConfigWidget * > mConfigWidgets
Layer config widgets.
virtual void apply()=0
Applies the dialog settings to the layer.
virtual void syncToLayer()=0
Resets the dialog to the current layer state.
QgsMapCanvas * mCanvas
Associated map canvas.
QgsLayerPropertiesDialog(QgsMapLayer *layer, QgsMapCanvas *canvas, const QString &settingsKey, QWidget *parent=nullptr, Qt::WindowFlags fl=Qt::WindowFlags(), QgsSettings *settings=nullptr)
Constructor for QgsLayerPropertiesDialog.
QgsMapLayerStyle mOldStyle
Previous layer style.
QPushButton * mBtnMetadata
Metadata button.
void openUrl(const QUrl &url)
Handles opening a url from the dialog.
Map canvas is a class for displaying all GIS data types on a canvas.
Stores style information (renderer, opacity, labeling, diagrams etc.) applicable to a map layer.
Base class for all map layer types.
QgsOptionsDialogBase(const QString &settingsKey, QWidget *parent=nullptr, Qt::WindowFlags fl=Qt::WindowFlags(), QgsSettings *settings=nullptr)
Constructor.
Stores settings for use within QGIS.