##// END OF EJS Templates
Refactoring handling of axes properties (1)...
Refactoring handling of axes properties (1) Creates helper used to determine which properties to set for the graph axes, depending on the type of the data hold (properties will be different if it's scalars/vectors or spectrograms)

File last commit:

r884:e439cb403ff9
r916:b92a8e838f6e
Show More
TimeController.h
48 lines | 1.2 KiB | 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"
Change SqpRange for SqpDateTime
r512 #include <Data/SqpRange.h>
Add the time controller.
r190
#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);
Change SqpRange for SqpDateTime
r512 SqpRange dateTime() const noexcept;
Add the time controller.
r190
Drop of variable, graph and zones on the time widget
r884 /// Returns the MIME data associated to a time range
static QByteArray mimeDataForTimeRange(const SqpRange &timeRange);
/// Returns the time range contained in a MIME data
static SqpRange timeRangeForMimeData(const QByteArray &mimeData);
Add the time controller.
r190 signals:
/// Signal emitted to notify that time parameters has beed updated
Change SqpRange for SqpDateTime
r512 void timeUpdated(SqpRange time);
Add the time controller.
r190
public slots:
Add apply button and its connection for timewidget
r302 /// Slot called when a new dateTime has been defined.
Change SqpRange for SqpDateTime
r512 void onTimeToUpdate(SqpRange dateTime);
Add the time controller.
r190
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