Mercurial > mercurial > hgweb_searcher03.cgi
view include/mask.h @ 1:7b6dab24f4b8
Gui parts complete.
author | pyon@macmini |
---|---|
date | Sun, 04 Aug 2013 21:42:49 +0900 |
parents | 0c0701a935f8 |
children | c066fde99517 |
line wrap: on
line source
// Filename : mask.h // Last Change: 04-Aug-2013. // #ifndef __MASK_H__ #define __MASK_H__ #include "common.h" #include "wx/config.h" #include "wx/fileconf.h" class MaskDialog : public wxDialog { DECLARE_EVENT_TABLE() private: protected: wxStaticText* m_staticTextDummy0; wxStaticText* m_staticTextX; wxStaticText* m_staticTextY; wxStaticText* m_staticTextW; wxStaticText* m_staticTextH; wxStaticText* m_staticTextMask1; wxTextCtrl* m_textCtrlM1x; wxTextCtrl* m_textCtrlM1y; wxTextCtrl* m_textCtrlM1w; wxTextCtrl* m_textCtrlM1h; wxStaticText* m_staticTextMask2; wxTextCtrl* m_textCtrlM2x; wxTextCtrl* m_textCtrlM2y; wxTextCtrl* m_textCtrlM2w; wxTextCtrl* m_textCtrlM2h; wxStaticText* m_staticTextMask3; wxTextCtrl* m_textCtrlM3x; wxTextCtrl* m_textCtrlM3y; wxTextCtrl* m_textCtrlM3w; wxTextCtrl* m_textCtrlM3h; wxButton* m_buttonCancel; wxButton* m_buttonSet; long x, y, w, h; wxRect m_mask1; wxRect m_mask2; wxRect m_mask3; public: MaskDialog( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ); ~MaskDialog(); void OnSet( wxCommandEvent& WXUNUSED(event) ); void LoadParams( void ); // Accessor void SetMask1( wxRect rect ) { m_mask1 = rect; } void SetMask2( wxRect rect ) { m_mask2 = rect; } void SetMask3( wxRect rect ) { m_mask3 = rect; } wxRect GetMask1() const { return m_mask1; } wxRect GetMask2() const { return m_mask2; } wxRect GetMask3() const { return m_mask3; } }; enum { ID_SETPARAM = wxID_HIGHEST + 70, }; #endif //__MASK_H__