Mercurial > mercurial > hgweb_qlipbrd.cgi
comparison include/mainframe.h @ 0:cb3403ca39b1
First release.
author | pyon@macmini |
---|---|
date | Sun, 30 Aug 2015 21:53:19 +0900 |
parents | |
children | e4aa0e7a07ad |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:cb3403ca39b1 |
---|---|
1 // Filename: mainframe.h | |
2 // Last Change: 2015-08-30 Sun 20:35:50. | |
3 // | |
4 #ifndef __MAINFRAME_H__ | |
5 #define __MAINFRAME_H__ | |
6 | |
7 #include <wx/listctrl.h> | |
8 #include <wx/gdicmn.h> | |
9 #include <wx/font.h> | |
10 #include <wx/colour.h> | |
11 #include <wx/settings.h> | |
12 #include <wx/string.h> | |
13 #include <wx/stattext.h> | |
14 #include <wx/button.h> | |
15 #include <wx/tglbtn.h> | |
16 #include <wx/sizer.h> | |
17 #include <wx/icon.h> | |
18 #include <wx/menu.h> | |
19 #include <wx/frame.h> | |
20 #include <wx/timer.h> | |
21 | |
22 class MainFrame : public wxFrame | |
23 { | |
24 DECLARE_EVENT_TABLE() | |
25 private: | |
26 wxTimer m_timer; | |
27 int m_current; | |
28 long m_counter; | |
29 wxString m_last; | |
30 | |
31 protected: | |
32 enum | |
33 { | |
34 ID_MNABOUT = wxID_HIGHEST + 1, | |
35 ID_MNEXIT, | |
36 ID_MNLDPGIN, | |
37 ID_MNSVPGIN, | |
38 | |
39 ID_TIMER, | |
40 ID_TGL, | |
41 ID_LIST, | |
42 | |
43 ID_BTNUP, | |
44 ID_BTNDOWN, | |
45 ID_BTNDEL, | |
46 ID_BTNADD, | |
47 ID_EXIT, | |
48 }; | |
49 | |
50 wxMenuBar* m_menubar; | |
51 wxMenu* m_menuFile; | |
52 wxMenu* m_menuPlugin; | |
53 | |
54 wxTextCtrl* m_textCtrlShow; | |
55 wxToggleButton* m_toggleBtn; | |
56 | |
57 wxListView* m_listView; | |
58 | |
59 wxButton* m_buttonUp; | |
60 wxButton* m_buttonDown; | |
61 wxButton* m_buttonDel; | |
62 wxButton* m_buttonAdd; | |
63 wxButton* m_buttonExit; | |
64 | |
65 public: | |
66 MainFrame( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ); | |
67 ~MainFrame(); | |
68 | |
69 // Event Handlers | |
70 void OnMNAbout( wxCommandEvent& ); | |
71 void OnMNExit( wxCommandEvent& ); | |
72 void OnMNLoad( wxCommandEvent& ); | |
73 void OnMNSaveAs( wxCommandEvent& ); | |
74 | |
75 void OnDClickItem( wxListEvent& ); | |
76 void OnSelectItem( wxListEvent& ); | |
77 | |
78 void OnToggle( wxCommandEvent& ); | |
79 void OnTimer( wxTimerEvent& ); | |
80 | |
81 void OnBtnUp( wxCommandEvent& ); | |
82 void OnBtnDown( wxCommandEvent& ); | |
83 void OnBtnDel( wxCommandEvent& ); | |
84 void OnBtnAdd( wxCommandEvent& ); | |
85 void OnBtnExit( wxCommandEvent& ); | |
86 | |
87 // Functions | |
88 void EnableButtons( bool ); | |
89 void SwapListItem( long, long ); | |
90 void ReNumberList(); | |
91 void DoProcess(); | |
92 }; | |
93 | |
94 #endif //__MAINFRAME_H__ | |
95 |