QGIS API Documentation 3.99.0-Master (7d2ca374f2d)
Loading...
Searching...
No Matches
qgstiledscenelayerproperties.h
Go to the documentation of this file.
1/***************************************************************************
2 qgstiledscenelayerproperties.h
3 --------------------------------------
4 Date : June 2023
5 Copyright : (C) 2023 by Nyall Dawson
6 Email : nyall dot dawson 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 QGSTILEDSCENELAYERPROPERTIES_H
17#define QGSTILEDSCENELAYERPROPERTIES_H
18
19#include "ui_qgstiledscenelayerpropertiesbase.h"
20
21#include "qgis_gui.h"
23
24#define SIP_NO_FILE
25
27class QgsMessageBar;
29
36class GUI_EXPORT QgsTiledSceneLayerProperties : public QgsLayerPropertiesDialog, private Ui::QgsTiledSceneLayerPropertiesBase
37{
38 Q_OBJECT
39 public:
41 QgsTiledSceneLayerProperties( QgsTiledSceneLayer *layer, QgsMapCanvas *canvas, QgsMessageBar *messageBar, QWidget *parent = nullptr, Qt::WindowFlags = QgsGuiUtils::ModalDialogFlags );
42
43 protected slots:
44 void syncToLayer() final;
45 void apply() final;
46 void rollback() final;
47
48 private slots:
49 void aboutToShowStyleMenu();
50 void showHelp();
51 void crsChanged( const QgsCoordinateReferenceSystem &crs );
52
53 private:
54 QgsTiledSceneLayer *mLayer = nullptr;
55
56 QAction *mActionLoadMetadata = nullptr;
57 QAction *mActionSaveMetadataAs = nullptr;
58
59 QgsMetadataWidget *mMetadataWidget = nullptr;
60
62};
63
64#endif // QGSTILEDSCENELAYERPROPERTIES_H
Represents a coordinate reference system (CRS).
virtual void rollback()
Rolls back changes made to the layer.
virtual void apply()=0
Applies the dialog settings to the layer.
virtual void syncToLayer()=0
Resets the dialog to the current layer state.
QgsLayerPropertiesDialog(QgsMapLayer *layer, QgsMapCanvas *canvas, const QString &settingsKey, QWidget *parent=nullptr, Qt::WindowFlags fl=Qt::WindowFlags(), QgsSettings *settings=nullptr)
Constructor for QgsLayerPropertiesDialog.
Map canvas is a class for displaying all GIS data types on a canvas.
A bar for displaying non-blocking messages to the user.
A wizard to edit metadata on a map layer.
QgsTiledSceneLayerProperties(QgsTiledSceneLayer *layer, QgsMapCanvas *canvas, QgsMessageBar *messageBar, QWidget *parent=nullptr, Qt::WindowFlags=QgsGuiUtils::ModalDialogFlags)
Constructor.
Represents a map layer supporting display of tiled scene objects.