##// END OF EJS Templates
Implements filter function for data source...
Implements filter function for data source An item is valid if one of its metadata matches the text in the seach box

File last commit:

r461:b8af3b4730c2
r477:eab21078feec
Show More
TimeController.h
42 lines | 1014 B | text/x-c | CLexer
Add the time controller.
r190 #ifndef SCIQLOP_TIMECONTROLLER_H
#define SCIQLOP_TIMECONTROLLER_H
Alexandre Leroux
Exports core module as a shared library...
r461 #include "CoreGlobal.h"
Add the time controller.
r190 #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.
*/
Alexandre Leroux
Exports core module as a shared library...
r461 class SCIQLOP_CORE_EXPORT TimeController : public QObject {
Add the time controller.
r190 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
r302 /// Slot called when a new dateTime has been defined.
Add the time controller.
r190 void onTimeToUpdate(SqpDateTime dateTime);
Add apply button and its connection for timewidget
r302 /// Slot called when the dateTime has to be notified. Call timeUpdated signal
void onTimeNotify();
Add the time controller.
r190 private:
class TimeControllerPrivate;
spimpl::unique_impl_ptr<TimeControllerPrivate> impl;
};
#endif // SCIQLOP_TIMECONTROLLER_H