QGIS API Documentation  3.24.2-Tisler (13c1a02865)
qgsrasterlayertemporalpropertieswidget.h
Go to the documentation of this file.
1 /***************************************************************************
2  qgsrasterlayertemporalpropertieswidget.h
3  ------------------------------
4  begin : January 2020
5  copyright : (C) 2020 by Samweli Mwakisambwe
6  email : samweli at kartoza dot com
7  ***************************************************************************/
8 
9 /***************************************************************************
10  * *
11  * This program is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU General Public License as published by *
13  * the Free Software Foundation; either version 2 of the License, or *
14  * (at your option) any later version. *
15  * *
16  ***************************************************************************/
17 
18 #ifndef QGSRASTERLAYERTEMPORALPROPERTIESWIDGET_H
19 #define QGSRASTERLAYERTEMPORALPROPERTIESWIDGET_H
20 
21 #include "ui_qgsrasterlayertemporalpropertieswidgetbase.h"
22 #include "qgis_gui.h"
23 
24 class QgsRasterLayer;
26 
35 class GUI_EXPORT QgsRasterLayerTemporalPropertiesWidget : public QWidget, private Ui::QgsRasterLayerTemporalPropertiesWidgetBase
36 {
37  Q_OBJECT
38  public:
39 
43  QgsRasterLayerTemporalPropertiesWidget( QWidget *parent = nullptr, QgsRasterLayer *layer = nullptr );
44 
48  void saveTemporalProperties();
49 
53  void syncToLayer();
54 
60  void addWidget( QgsMapLayerConfigWidget *widget SIP_TRANSFER );
61 
62  private slots:
63  void temporalGroupBoxChecked( bool checked );
64 
65  private:
66 
70  QgsRasterLayer *mLayer = nullptr;
71  QVBoxLayout *mExtraWidgetLayout = nullptr;
72 
73  QList< QgsMapLayerConfigWidget * > mExtraWidgets;
74 
75 };
76 #endif // QGSRASTERLAYERTEMPORALPROPERTIESWIDGET_H
A panel widget that can be shown in the map style dock.
A widget for configuring the temporal properties for a raster layer.
Represents a raster layer.
#define SIP_TRANSFER
Definition: qgis_sip.h:36