-
Notifications
You must be signed in to change notification settings - Fork 0
/
FilterDialog.hpp
51 lines (39 loc) · 962 Bytes
/
FilterDialog.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#ifndef DDS_DEMO_ISHAPES_FILTER_DIALOG_HPP_
#define DDS_DEMO_ISHAPES_FILTER_DIALOG_HPP_
/** @file */
/**
* @addtogroup demos_iShapes
*/
/** @{*/
#include <QtWidgets/QtWidgets>
#include <QtCore/QRect>
#include <ui_filterForm.h>
#include <ShapesWidget.hpp>
namespace demo { namespace ishapes {
class FilterDialog : public QDialog
{
Q_OBJECT;
public:
FilterDialog(ShapesWidget* widget);
virtual ~FilterDialog();
public slots:
virtual void accept();
virtual void reject();
virtual void updateX0(int x);
virtual void updateY0(int y);
virtual void updateX1(int w);
virtual void updateY1(int h);
virtual void updateFilterStatus(bool on);
virtual bool isEnabled();
virtual QRect getFilterBounds();
virtual bool filterOutside();
private:
Ui_FilterDialog filterDialog_;
ShapesWidget* widget_;
QRect filter_;
bool enabled_;
};
}
}
/** @}*/
#endif /* DDS_DEMO_ISHAPES_FILTER_DIALOG_HPP_ */