]> Shamusworld >> Repos - architektonas/blob - src/forms/dlghatch.h
Final round of dialogs/forms needing to be converted from Qt3 to 4
[architektonas] / src / forms / dlghatch.h
1 #ifndef __DLGHATCH_H__
2 #define __DLGHATCH_H__
3
4 #include "ui_dlghatch.h"
5
6 class RS_EntityContainer;
7 class RS_Pattern;
8 class RS_Hatch;
9
10 class DlgHatch: public QDialog
11 {
12         Q_OBJECT
13
14         public:
15                 DlgHatch(QWidget * parent = 0, Qt::WindowFlags flags = 0);
16                 ~DlgHatch();
17
18         public slots:
19                 void polish();
20                 void showEvent(QShowEvent * e);
21                 void setHatch(RS_Hatch & h, bool isNew);
22                 void updateHatch();
23                 void setPattern(const QString & p);
24                 void resizeEvent(QResizeEvent *);
25                 void updatePreview();
26                 void updatePreview(RS_Pattern *);
27
28         private:
29                 RS_EntityContainer * preview;
30                 bool isNew;
31                 RS_Pattern * pattern;
32                 RS_Hatch * hatch;
33
34         private:
35                 Ui::DlgHatch ui;
36 };
37
38 #endif  // __DLGHATCH_H__