Mercurial > mercurial > hgweb_rsearcher.cgi
comparison include/rsearcher.h @ 4:06342fc544e4
mouse gesture.
author | pyon@macmini |
---|---|
date | Mon, 15 Oct 2018 20:07:38 +0900 |
parents | db4813125eb8 |
children | e3b10fb860b3 |
comparison
equal
deleted
inserted
replaced
3:db4813125eb8 | 4:06342fc544e4 |
---|---|
1 // Filename : rsearcher.h | 1 // Filename : rsearcher.h |
2 // Last Change: 2018-10-11 –Ø 18:29:13. | 2 // Last Change: 2018-10-12 ‹à 16:16:26. |
3 // | 3 // |
4 | 4 |
5 #ifndef __RSEARCH_H__ | 5 #ifndef __RSEARCH_H__ |
6 #define __RSEARCH_H__ | 6 #define __RSEARCH_H__ |
7 | 7 |
46 int m_dragx, m_dragy; // for image drag | 46 int m_dragx, m_dragy; // for image drag |
47 int cx, cy; // for mouse-gesture | 47 int cx, cy; // for mouse-gesture |
48 int m_zoom = 0; | 48 int m_zoom = 0; |
49 wxBitmap m_bmp[5]; | 49 wxBitmap m_bmp[5]; |
50 wxScrolledWindow* m_parent; | 50 wxScrolledWindow* m_parent; |
51 int select_tab = 0; | |
51 | 52 |
52 public: | 53 public: |
53 MyStaticBitmap( wxScrolledWindow *parent, wxWindowID id, const wxBitmap &label, const wxPoint &pos, const wxSize &size, long style, const wxString &name ); | 54 MyStaticBitmap( wxScrolledWindow *parent, wxWindowID id, const wxBitmap &label, const wxPoint &pos, const wxSize &size, long style, const wxString &name ); |
54 ~MyStaticBitmap(); | 55 ~MyStaticBitmap(); |
55 | 56 |
59 void OnEndRGesture( wxMouseEvent& event ); | 60 void OnEndRGesture( wxMouseEvent& event ); |
60 void OnMotion( wxMouseEvent& event ); | 61 void OnMotion( wxMouseEvent& event ); |
61 void OnWheel( wxMouseEvent& event ); | 62 void OnWheel( wxMouseEvent& event ); |
62 void SetImage( int i, wxBitmap bmp ) { m_bmp[i] = bmp; }; | 63 void SetImage( int i, wxBitmap bmp ) { m_bmp[i] = bmp; }; |
63 void SetZoom( int m_zoom ); | 64 void SetZoom( int m_zoom ); |
65 void ChangeBook( int i ); | |
64 }; | 66 }; |
65 | 67 |
66 class MainFrame : public wxFrame | 68 class MainFrame : public wxFrame |
67 { | 69 { |
68 DECLARE_EVENT_TABLE() | 70 DECLARE_EVENT_TABLE() |
73 wxString m_user; | 75 wxString m_user; |
74 wxArrayString m_index; | 76 wxArrayString m_index; |
75 wxTimer m_timer; | 77 wxTimer m_timer; |
76 | 78 |
77 protected: | 79 protected: |
78 enum { | |
79 ID_SEARCH = wxID_HIGHEST + 100, | |
80 ID_LIST, | |
81 ID_NBOOK, | |
82 ID_SLDR, | |
83 ID_TIMER, | |
84 ID_LOGOUT, | |
85 ID_TEST, | |
86 }; | |
87 | |
88 MySearchCtrl* m_searchCtrl; | 80 MySearchCtrl* m_searchCtrl; |
89 MyStaticBitmap* m_staticBitmap1; | 81 MyStaticBitmap* m_staticBitmap1; |
90 MyStaticBitmap* m_staticBitmap2; | 82 MyStaticBitmap* m_staticBitmap2; |
91 MyStaticBitmap* m_staticBitmap3; | 83 MyStaticBitmap* m_staticBitmap3; |
92 MyStaticBitmap* m_staticBitmap4; | 84 MyStaticBitmap* m_staticBitmap4; |
138 void OnTimer( wxTimerEvent& event ); | 130 void OnTimer( wxTimerEvent& event ); |
139 void OnLogout( wxCommandEvent& event ); | 131 void OnLogout( wxCommandEvent& event ); |
140 void OnTestButton( wxCommandEvent& event ); | 132 void OnTestButton( wxCommandEvent& event ); |
141 }; | 133 }; |
142 | 134 |
143 | |
144 #endif // __RSEARCH_H__ | 135 #endif // __RSEARCH_H__ |
145 | 136 |