2018-10-13 09:52:08 +00:00
|
|
|
#ifndef FILTERWIDGET_2_H
|
|
|
|
#define FILTERWIDGET_2_H
|
|
|
|
|
|
|
|
#include <QWidget>
|
2018-11-16 14:24:11 +00:00
|
|
|
#include <QHideEvent>
|
|
|
|
#include <QShowEvent>
|
2018-10-13 09:52:08 +00:00
|
|
|
|
|
|
|
#include <memory>
|
|
|
|
|
|
|
|
#include "ui_filterwidget2.h"
|
2018-12-06 19:07:47 +00:00
|
|
|
#include "qt-models/filtermodels.h"
|
2018-10-13 09:52:08 +00:00
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class FilterWidget2;
|
|
|
|
}
|
|
|
|
|
|
|
|
class FilterWidget2 : public QWidget {
|
|
|
|
Q_OBJECT
|
2018-12-06 19:07:47 +00:00
|
|
|
|
2018-10-13 09:52:08 +00:00
|
|
|
public:
|
|
|
|
explicit FilterWidget2(QWidget *parent = 0);
|
|
|
|
void updateFilter();
|
2018-11-16 14:24:11 +00:00
|
|
|
protected:
|
|
|
|
void hideEvent(QHideEvent *event) override;
|
|
|
|
void showEvent(QShowEvent *event) override;
|
2018-10-13 09:52:08 +00:00
|
|
|
|
2019-01-01 17:49:56 +00:00
|
|
|
public slots:
|
|
|
|
void updatePlanned(int value);
|
|
|
|
void updateLogged(int value);
|
2019-01-20 20:01:00 +00:00
|
|
|
private slots:
|
2019-01-25 21:11:30 +00:00
|
|
|
void clearFilter();
|
2019-01-25 21:41:07 +00:00
|
|
|
void closeFilter();
|
2019-01-20 20:01:00 +00:00
|
|
|
void temperatureChanged();
|
2019-01-25 20:30:43 +00:00
|
|
|
void countsChanged();
|
2019-01-01 17:49:56 +00:00
|
|
|
|
2018-10-13 09:52:08 +00:00
|
|
|
private:
|
2019-01-25 21:11:30 +00:00
|
|
|
bool ignoreSignal;
|
2019-01-17 22:01:57 +00:00
|
|
|
Ui::FilterWidget2 ui;
|
2018-12-16 19:33:37 +00:00
|
|
|
void filterDataChanged(const FilterData &data);
|
2018-11-16 14:24:11 +00:00
|
|
|
FilterData filterData;
|
2018-10-13 09:52:08 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|