QGIS API Documentation  3.26.3-Buenos Aires (65e4edfdad)
qgsvectorlayertemporalpropertieswidget.h
Go to the documentation of this file.
1 /***************************************************************************
2  qgsvectorlayertemporalpropertieswidget.h
3  ------------------------------
4  begin : May 2020
5  copyright : (C) 2020 by Nyall Dawson
6  email : nyall dot dawson at gmail 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 QGSVECTORLAYERTEMPORALPROPERTIESWIDGET_H
19 #define QGSVECTORLAYERTEMPORALPROPERTIESWIDGET_H
20 
21 #include "ui_qgsvectorlayertemporalpropertieswidgetbase.h"
23 #include "qgis_gui.h"
24 
25 class QgsVectorLayer;
26 
34 class GUI_EXPORT QgsVectorLayerTemporalPropertiesWidget : public QWidget, public QgsExpressionContextGenerator, private Ui::QgsVectorLayerTemporalPropertiesWidgetBase
35 {
36  Q_OBJECT
37  public:
38 
42  QgsVectorLayerTemporalPropertiesWidget( QWidget *parent = nullptr, QgsVectorLayer *layer = nullptr );
43 
47  void saveTemporalProperties();
48 
50 
54  void syncToLayer();
55 
56  private:
57 
61  QgsVectorLayer *mLayer = nullptr;
62 
63 };
64 #endif // QGSVECTORLAYERTEMPORALPROPERTIESWIDGET_H
QgsExpressionContext
Expression contexts are used to encapsulate the parameters around which a QgsExpression should be eva...
Definition: qgsexpressioncontext.h:406
QgsExpressionContextGenerator::createExpressionContext
virtual QgsExpressionContext createExpressionContext() const =0
This method needs to be reimplemented in all classes which implement this interface and return an exp...
qgsexpressioncontextgenerator.h
QgsVectorLayerTemporalPropertiesWidget
A widget for configuring the temporal properties for a vector layer.
Definition: qgsvectorlayertemporalpropertieswidget.h:34
QgsVectorLayer
Represents a vector layer which manages a vector based data sets.
Definition: qgsvectorlayer.h:391
QgsExpressionContextGenerator
Abstract interface for generating an expression context.
Definition: qgsexpressioncontextgenerator.h:36