##// END OF EJS Templates
Spectrogram segfault should be fixed now, added ability to provide Spectrogram min sampling time to avoid computation when possible...
Spectrogram segfault should be fixed now, added ability to provide Spectrogram min sampling time to avoid computation when possible Spectrogram visu is still broken... Signed-off-by: Alexis Jeandet <alexis.jeandet@member.fsf.org>

File last commit:

r1462:66c20669d3a7
r1467:da44adcd99e4
Show More
TimeWidget.h
64 lines | 1.3 KiB | text/x-c | CLexer
#ifndef SCIQLOP_TIMEWIDGET_H
#define SCIQLOP_TIMEWIDGET_H
#include <QWidget>
#include <QWidgetAction>
#include <Data/DateTimeRange.h>
#include <Common/spimpl.h>
namespace Ui
{
class TimeWidget;
} // Ui
class TimeWidget : public QWidget
{
Q_OBJECT
public:
explicit TimeWidget(QWidget* parent = 0);
virtual ~TimeWidget();
void setTimeRange(DateTimeRange time);
DateTimeRange timeRange() const;
signals:
/// Signal emitted when the time parameters has beed updated
void timeUpdated(DateTimeRange time);
public slots:
/// slot called when time parameters update has ben requested
void onTimeUpdateRequested();
protected:
void dragEnterEvent(QDragEnterEvent* event) override;
void dragLeaveEvent(QDragLeaveEvent* event) override;
void dropEvent(QDropEvent* event) override;
void mousePressEvent(QMouseEvent* event) override;
void mouseMoveEvent(QMouseEvent* event) override;
private:
Ui::TimeWidget* ui;
class TimeWidgetPrivate;
spimpl::unique_impl_ptr<TimeWidgetPrivate> impl;
};
class TimeWidgetAction : public QWidgetAction
{
Q_OBJECT
TimeWidget* timeWidget;
public:
explicit TimeWidgetAction(QWidget* parent = 0) : QWidgetAction(parent)
{
timeWidget = new TimeWidget();
this->setDefaultWidget(timeWidget);
}
};
#endif // SCIQLOP_ SQPSIDEPANE_H