QGIS API Documentation
4.3.0-Master (16eddb2670e)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
core
qgstemporalcontroller.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgstemporalcontroller.h
3
---------------
4
begin : March 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 QGSTEMPORALCONTROLLER_H
19
#define QGSTEMPORALCONTROLLER_H
20
21
#include "qgis_core.h"
22
#include "
qgis_sip.h
"
23
#include "
qgsrange.h
"
24
25
#include <QObject>
26
27
#ifdef SIP_RUN
28
// clang-format off
29
% ModuleHeaderCode
30
#include <
qgstemporalnavigationobject.h
>
31
% End
32
// clang-format on
33
#endif
34
43
class
CORE_EXPORT
QgsTemporalController
:
public
QObject
44
{
45
Q_OBJECT
46
47
#ifdef SIP_RUN
48
SIP_CONVERT_TO_SUBCLASS_CODE
49
if
( qobject_cast<QgsTemporalNavigationObject *>( sipCpp ) )
50
{
51
sipType = sipType_QgsTemporalNavigationObject;
52
}
53
else
54
{
55
sipType = 0;
56
}
57
SIP_END
58
#endif
59
60
public
:
61
66
QgsTemporalController
( QObject *parent
SIP_TRANSFERTHIS
=
nullptr
);
67
68
signals:
69
74
void
updateTemporalRange
(
const
QgsDateTimeRange
&range );
75
};
76
77
#endif
// QGSTEMPORALCONTROLLER_H
QgsTemporalController::QgsTemporalController
QgsTemporalController(QObject *parent=nullptr)
Constructor for QgsTemporalController, with the specified parent object.
Definition
qgstemporalcontroller.cpp:22
QgsTemporalController::updateTemporalRange
void updateTemporalRange(const QgsDateTimeRange &range)
Signals that a temporal range has changed and needs to be updated in all connected objects.
qgis_sip.h
SIP_CONVERT_TO_SUBCLASS_CODE
#define SIP_CONVERT_TO_SUBCLASS_CODE(code)
Definition
qgis_sip.h:203
SIP_TRANSFERTHIS
#define SIP_TRANSFERTHIS
Definition
qgis_sip.h:52
SIP_END
#define SIP_END
Definition
qgis_sip.h:220
qgsrange.h
QgsDateTimeRange
QgsTemporalRange< QDateTime > QgsDateTimeRange
QgsRange which stores a range of date times.
Definition
qgsrange.h:764
qgstemporalnavigationobject.h
Generated on
for QGIS API Documentation by
1.17.0