QGIS API Documentation 3.99.0-Master (2fe06baccd8)
Loading...
Searching...
No Matches
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"
22
23#include "qgis_gui.h"
25
26class QgsVectorLayer;
27
35class GUI_EXPORT QgsVectorLayerTemporalPropertiesWidget : public QWidget, public QgsExpressionContextGenerator, private Ui::QgsVectorLayerTemporalPropertiesWidgetBase
36{
37 Q_OBJECT
38 public:
42 QgsVectorLayerTemporalPropertiesWidget( QWidget *parent = nullptr, QgsVectorLayer *layer = nullptr );
43
48
50
54 void syncToLayer();
55
56 private:
60 QgsVectorLayer *mLayer = nullptr;
61};
62#endif // QGSVECTORLAYERTEMPORALPROPERTIESWIDGET_H
Abstract interface for generating an expression context.
virtual QgsExpressionContext createExpressionContext() const =0
This method needs to be reimplemented in all classes which implement this interface and return an exp...
Expression contexts are used to encapsulate the parameters around which a QgsExpression should be eva...
void syncToLayer()
Updates the widget state to match the current layer state.
QgsVectorLayerTemporalPropertiesWidget(QWidget *parent=nullptr, QgsVectorLayer *layer=nullptr)
Constructor for QgsVectorLayerTemporalPropertiesWidget.
void saveTemporalProperties()
Save widget temporal properties inputs.
Represents a vector layer which manages a vector based dataset.