0
|
1 // Filename : myframe.h
|
|
2 // Last Change: 29-Oct-2013.
|
|
3 //
|
|
4
|
|
5 #ifndef __MYFRAME_H__
|
|
6 #define __MYFRAME_H__
|
|
7
|
|
8 #include <wx/artprov.h>
|
|
9 #include <wx/xrc/xmlres.h>
|
|
10 #include <wx/string.h>
|
|
11 #include <wx/textctrl.h>
|
|
12 #include <wx/gdicmn.h>
|
|
13 #include <wx/font.h>
|
|
14 #include <wx/colour.h>
|
|
15 #include <wx/settings.h>
|
|
16 #include <wx/button.h>
|
|
17 #include <wx/sizer.h>
|
|
18 #include <wx/dir.h>
|
|
19 #include <wx/frame.h>
|
|
20
|
|
21 /// Class MyFrame
|
|
22 class MyFrame : public wxFrame
|
|
23 {
|
|
24 DECLARE_EVENT_TABLE()
|
|
25 private:
|
|
26 bool state1;
|
|
27 bool state2;
|
|
28 bool state3;
|
|
29
|
|
30 protected:
|
|
31 wxTextCtrl* m_textCtrl1l;
|
|
32 wxButton* m_button1;
|
|
33 wxTextCtrl* m_textCtrl1r;
|
|
34 wxTextCtrl* m_textCtrl2l;
|
|
35 wxButton* m_button2;
|
|
36 wxTextCtrl* m_textCtrl2r;
|
|
37 wxTextCtrl* m_textCtrl3l;
|
|
38 wxButton* m_button3;
|
|
39 wxTextCtrl* m_textCtrl3r;
|
|
40
|
|
41 public:
|
|
42 MyFrame( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style );
|
|
43 ~MyFrame();
|
|
44
|
|
45 void OnButton1( wxCommandEvent& WXUNUSED(event) );
|
|
46 void OnButton2( wxCommandEvent& WXUNUSED(event) );
|
|
47 void OnButton3( wxCommandEvent& WXUNUSED(event) );
|
|
48 void InitControl( void );
|
|
49 void Exchange( wxTextCtrl* left, wxTextCtrl* right, bool sw );
|
|
50 };
|
|
51
|
|
52 enum {
|
|
53 ID_BTN1 = wxID_HIGHEST + 1,
|
|
54 ID_BTN2,
|
|
55 ID_BTN3,
|
|
56 };
|
|
57
|
|
58 #endif //__MYFRAME_H__
|
|
59
|