##// END OF EJS Templates
Variable deletion (5)...
Variable deletion (5) Calls operation in a slot that will be called when the variable is about to be deleted from the variable controller

File last commit:

r279:c121d060318a
r308:bd7aec6a1752
Show More
TimeController.h
40 lines | 969 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:
Add apply button and its connection for timewidget
r279 /// Slot called when a new dateTime has been defined.
Add the time controller.
r176 void onTimeToUpdate(SqpDateTime dateTime);
Add apply button and its connection for timewidget
r279 /// Slot called when the dateTime has to be notified. Call timeUpdated signal
void onTimeNotify();
Add the time controller.
r176 private:
class TimeControllerPrivate;
spimpl::unique_impl_ptr<TimeControllerPrivate> impl;
};
#endif // SCIQLOP_TIMECONTROLLER_H