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; 25 26 /** 27 * \ingroup gui 28 * \class QgsRasterLayerTemporalPropertiesWidget 29 * \brief A widget for configuring the temporal properties for a raster layer. 30 * 31 * \since QGIS 3.14 32 */ 33 34 class GUI_EXPORT QgsRasterLayerTemporalPropertiesWidget : public QWidget, private Ui::QgsRasterLayerTemporalPropertiesWidgetBase 35 { 36 Q_OBJECT 37 public: 38 39 /** 40 * Constructor for QgsRasterLayerTemporalPropertiesWidget. 41 */ 42 QgsRasterLayerTemporalPropertiesWidget( QWidget *parent = nullptr, QgsRasterLayer *layer = nullptr ); 43 44 /** 45 * Save widget temporal properties inputs. 46 */ 47 void saveTemporalProperties(); 48 49 /** 50 * Updates the widget state to match the current layer state. 51 */ 52 void syncToLayer(); 53 54 private: 55 56 /** 57 * The corresponding map layer with temporal attributes 58 */ 59 QgsRasterLayer *mLayer = nullptr; 60 61 }; 62 #endif // QGSRASTERLAYERTEMPORALPROPERTIESWIDGET_H 63