Mercurial > mercurial > hgweb_searcher03.cgi
comparison include/param.h @ 4:fdba695b99f1
More fast ( read from DB ).
Improve the precision of marksheet judgement.
| author | pyon@macmini |
|---|---|
| date | Wed, 11 Sep 2013 19:09:14 +0900 |
| parents | |
| children | bc2e2b304095 |
comparison
equal
deleted
inserted
replaced
| 3:1a64119ab257 | 4:fdba695b99f1 |
|---|---|
| 1 // Filename : param.h | |
| 2 // Last Change: 11-Sep-2013. | |
| 3 // | |
| 4 | |
| 5 #ifndef __PARAM_H__ | |
| 6 #define __PARAM_H__ | |
| 7 | |
| 8 #include "common.h" | |
| 9 #include "wx/config.h" | |
| 10 #include "wx/fileconf.h" | |
| 11 | |
| 12 class ParamDialog : public wxDialog | |
| 13 { | |
| 14 DECLARE_EVENT_TABLE() | |
| 15 private: | |
| 16 long x, y, w, h; | |
| 17 wxRect m_mask1; | |
| 18 wxRect m_mask2; | |
| 19 wxRect m_mask3; | |
| 20 wxRect m_mask1old; | |
| 21 wxRect m_mask2old; | |
| 22 wxRect m_mask3old; | |
| 23 | |
| 24 protected: | |
| 25 wxNotebook* m_notebook; | |
| 26 wxPanel* m_panel; | |
| 27 wxPanel* m_panelold; | |
| 28 wxPanel* m_paneljudge; | |
| 29 | |
| 30 // Tab 1 | |
| 31 wxStaticText* m_staticTextDummy0; | |
| 32 wxStaticText* m_staticTextX; | |
| 33 wxStaticText* m_staticTextY; | |
| 34 wxStaticText* m_staticTextW; | |
| 35 wxStaticText* m_staticTextH; | |
| 36 | |
| 37 wxStaticText* m_staticTextMask1; | |
| 38 wxTextCtrl* m_textCtrlM1x; | |
| 39 wxTextCtrl* m_textCtrlM1y; | |
| 40 wxTextCtrl* m_textCtrlM1w; | |
| 41 wxTextCtrl* m_textCtrlM1h; | |
| 42 | |
| 43 wxStaticText* m_staticTextMask2; | |
| 44 wxTextCtrl* m_textCtrlM2x; | |
| 45 wxTextCtrl* m_textCtrlM2y; | |
| 46 wxTextCtrl* m_textCtrlM2w; | |
| 47 wxTextCtrl* m_textCtrlM2h; | |
| 48 | |
| 49 wxStaticText* m_staticTextMask3; | |
| 50 wxTextCtrl* m_textCtrlM3x; | |
| 51 wxTextCtrl* m_textCtrlM3y; | |
| 52 wxTextCtrl* m_textCtrlM3w; | |
| 53 wxTextCtrl* m_textCtrlM3h; | |
| 54 | |
| 55 // Tab 2 | |
| 56 wxStaticText* m_staticTextDummy0Old; | |
| 57 wxStaticText* m_staticTextXOld; | |
| 58 wxStaticText* m_staticTextYOld; | |
| 59 wxStaticText* m_staticTextWOld; | |
| 60 wxStaticText* m_staticTextHOld; | |
| 61 | |
| 62 wxStaticText* m_staticTextMask1Old; | |
| 63 wxTextCtrl* m_textCtrlM1xOld; | |
| 64 wxTextCtrl* m_textCtrlM1yOld; | |
| 65 wxTextCtrl* m_textCtrlM1wOld; | |
| 66 wxTextCtrl* m_textCtrlM1hOld; | |
| 67 | |
| 68 wxStaticText* m_staticTextMask2Old; | |
| 69 wxTextCtrl* m_textCtrlM2xOld; | |
| 70 wxTextCtrl* m_textCtrlM2yOld; | |
| 71 wxTextCtrl* m_textCtrlM2wOld; | |
| 72 wxTextCtrl* m_textCtrlM2hOld; | |
| 73 | |
| 74 wxStaticText* m_staticTextMask3Old; | |
| 75 wxTextCtrl* m_textCtrlM3xOld; | |
| 76 wxTextCtrl* m_textCtrlM3yOld; | |
| 77 wxTextCtrl* m_textCtrlM3wOld; | |
| 78 wxTextCtrl* m_textCtrlM3hOld; | |
| 79 | |
| 80 // Tab 3 | |
| 81 wxTextCtrl* m_textCtrlLMin; | |
| 82 wxStaticText* m_staticTextLen; | |
| 83 wxTextCtrl* m_textCtrlLMax; | |
| 84 | |
| 85 wxTextCtrl* m_textCtrlZMin; | |
| 86 wxStaticText* m_staticTextZ; | |
| 87 wxTextCtrl* m_textCtrlZmax; | |
| 88 | |
| 89 // | |
| 90 wxButton* m_buttonCancel; | |
| 91 wxButton* m_buttonSet; | |
| 92 | |
| 93 public: | |
| 94 | |
| 95 ParamDialog( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ); | |
| 96 ~ParamDialog(); | |
| 97 | |
| 98 void OnSet( wxCommandEvent& WXUNUSED(event) ); | |
| 99 void LoadParams( void ); | |
| 100 | |
| 101 // Accessor | |
| 102 void SetMask1( wxRect rect ) { m_mask1 = rect; } | |
| 103 void SetMask2( wxRect rect ) { m_mask2 = rect; } | |
| 104 void SetMask3( wxRect rect ) { m_mask3 = rect; } | |
| 105 void SetMask1Old( wxRect rect ) { m_mask1old = rect; } | |
| 106 void SetMask2Old( wxRect rect ) { m_mask2old = rect; } | |
| 107 void SetMask3Old( wxRect rect ) { m_mask3old = rect; } | |
| 108 wxRect GetMask1() const { return m_mask1; } | |
| 109 wxRect GetMask2() const { return m_mask2; } | |
| 110 wxRect GetMask3() const { return m_mask3; } | |
| 111 wxRect GetMask1Old() const { return m_mask1old; } | |
| 112 wxRect GetMask2Old() const { return m_mask2old; } | |
| 113 wxRect GetMask3Old() const { return m_mask3old; } | |
| 114 }; | |
| 115 | |
| 116 enum { | |
| 117 ID_SETPARAM = wxID_HIGHEST + 70, | |
| 118 }; | |
| 119 | |
| 120 #endif //__PARAM_H__ | |
| 121 |
