18 #ifndef QGSTEMPORALCONTROLLERWIDGET_H
19 #define QGSTEMPORALCONTROLLERWIDGET_H
21 #include "ui_qgstemporalcontrollerwidgetbase.h"
76 int mBlockSettingUpdates = 0;
77 int mBlockFrameDurationUpdates = 0;
79 bool mHasTemporalLayersLoaded =
false;
81 void togglePlayForward();
82 void togglePlayBackward();
84 bool mPlayingForward =
true;
86 std::unique_ptr< QMenu > mRangeMenu;
87 QAction *mRangeSetToProjectAction =
nullptr;
88 QAction *mRangeSetToAllLayersAction =
nullptr;
90 std::unique_ptr< QMenu > mRangeLayersSubMenu;
93 void firstTemporalLayerLoaded(
QgsMapLayer *layer );
102 void timeSlider_valueChanged(
int value );
107 void settings_clicked();
112 void setDates(
const QgsDateTimeRange &range );
117 void setDatesToAllLayers();
124 void setDatesToProjectTime();
129 void updateSlider(
const QgsDateTimeRange &range );
134 void updateRangeLabel(
const QgsDateTimeRange &range );
139 void updateTemporalExtent();
144 void updateFrameDuration();
146 void setWidgetStateFromProject();
148 void mNavigationOff_clicked();
149 void mNavigationFixedRange_clicked();
150 void mNavigationAnimated_clicked();
153 void onLayersAdded(
const QList<QgsMapLayer *> &layers );
154 void onProjectCleared();
156 void startEndDateTime_changed();
157 void fixedRangeStartEndDateTime_changed();
159 void saveRangeToProject();
161 void aboutToShowRangeMenu();
163 void mRangeSetToProjectAction_triggered();
164 void mRangeSetToAllLayersAction_triggered();
167 #endif // QGSTEMPORALCONTROLLERWIDGET_H