##// END OF EJS Templates
Fix the cosinus bug....
Fix the cosinus bug. The provider now works on the variable controller thread instead of the main thread. That means the visu is still usable during zoom operation

File last commit:

r176:c3e91a6962e0
r276:3a08c66e4df2
Show More
TimeController.h
37 lines | 885 B | text/x-c | CLexer
Add the time controller.
r176 #ifndef SCIQLOP_TIMECONTROLLER_H
#define SCIQLOP_TIMECONTROLLER_H
#include <Data/SqpDateTime.h>
#include <QLoggingCategory>
#include <QObject>
#include <Common/spimpl.h>
Q_DECLARE_LOGGING_CATEGORY(LOG_TimeController)
/**
* @brief The TimeController class aims to handle the Time parameters notification in SciQlop.
*/
class TimeController : public QObject {
Q_OBJECT
public:
explicit TimeController(QObject *parent = 0);
SqpDateTime dateTime() const noexcept;
signals:
/// Signal emitted to notify that time parameters has beed updated
void timeUpdated(SqpDateTime time);
public slots:
/// Slot called when a new dateTime has been defined. Call timeUpdated signal
void onTimeToUpdate(SqpDateTime dateTime);
private:
class TimeControllerPrivate;
spimpl::unique_impl_ptr<TimeControllerPrivate> impl;
};
#endif // SCIQLOP_TIMECONTROLLER_H