QGIS API Documentation
4.3.0-Master (52aa6503bed)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
gui
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"
24
#include "
qgsexpressioncontextgenerator.h
"
25
26
class
QgsVectorLayer
;
27
35
class
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
47
void
saveTemporalProperties
();
48
49
QgsExpressionContext
createExpressionContext
()
const override
;
50
54
void
syncToLayer
();
55
56
private
:
60
QgsVectorLayer
*mLayer =
nullptr
;
61
};
62
#endif
// QGSVECTORLAYERTEMPORALPROPERTIESWIDGET_H
QgsExpressionContextGenerator
Abstract interface for generating an expression context.
Definition
qgsexpressioncontextgenerator.h:36
QgsExpressionContextGenerator::createExpressionContext
virtual QgsExpressionContext createExpressionContext() const =0
This method needs to be reimplemented in all classes which implement this interface and return an exp...
QgsExpressionContext
Expression contexts are used to encapsulate the parameters around which a QgsExpression should be eva...
Definition
qgsexpressioncontext.h:491
QgsVectorLayerTemporalPropertiesWidget::syncToLayer
void syncToLayer()
Updates the widget state to match the current layer state.
Definition
qgsvectorlayertemporalpropertieswidget.cpp:169
QgsVectorLayerTemporalPropertiesWidget::QgsVectorLayerTemporalPropertiesWidget
QgsVectorLayerTemporalPropertiesWidget(QWidget *parent=nullptr, QgsVectorLayer *layer=nullptr)
Constructor for QgsVectorLayerTemporalPropertiesWidget.
Definition
qgsvectorlayertemporalpropertieswidget.cpp:29
QgsVectorLayerTemporalPropertiesWidget::saveTemporalProperties
void saveTemporalProperties()
Save widget temporal properties inputs.
Definition
qgsvectorlayertemporalpropertieswidget.cpp:119
QgsVectorLayer
Represents a vector layer which manages a vector based dataset.
Definition
qgsvectorlayer.h:414
qgsexpressioncontextgenerator.h
Generated on
for QGIS API Documentation by
1.17.0