Mercurial > mercurial > hgweb_rsearcher.cgi
comparison include/rsearcher.h @ 13:f5ffc34f045a
manage DB.
| author | pyon@macmini |
|---|---|
| date | Wed, 14 Nov 2018 19:43:40 +0900 |
| parents | 36811fd22bd2 |
| children | c1dc1fcee7fe |
comparison
equal
deleted
inserted
replaced
| 12:240752cbe11b | 13:f5ffc34f045a |
|---|---|
| 1 // Filename : rsearcher.h | 1 // Filename : rsearcher.h |
| 2 // Last Change: 2018-11-08 13:51:59. | 2 // Last Change: 2018-11-14 11:34:55. |
| 3 // | 3 // |
| 4 | 4 |
| 5 #ifndef __RSEARCH_H__ | 5 #ifndef __RSEARCH_H__ |
| 6 #define __RSEARCH_H__ | 6 #define __RSEARCH_H__ |
| 7 | 7 |
| 108 DECLARE_EVENT_TABLE() | 108 DECLARE_EVENT_TABLE() |
| 109 private: | 109 private: |
| 110 bool startup = true; | 110 bool startup = true; |
| 111 wxString m_server; | 111 wxString m_server; |
| 112 wxString m_hhs; | 112 wxString m_hhs; |
| 113 wxString m_dbdir; | |
| 113 wxString m_user; | 114 wxString m_user; |
| 114 wxArrayString m_index; | 115 wxArrayString m_index; |
| 115 wxTimer m_timer; | 116 wxTimer m_timer; |
| 116 HhsHash hhash; | 117 HhsHash hhash; |
| 117 RsHttp http; | 118 RsHttp http; |
| 156 wxButton* m_buttonFocus; | 157 wxButton* m_buttonFocus; |
| 157 wxButton* m_buttonPzoom; | 158 wxButton* m_buttonPzoom; |
| 158 wxButton* m_buttonMzoom; | 159 wxButton* m_buttonMzoom; |
| 159 wxButton* m_buttonDark; | 160 wxButton* m_buttonDark; |
| 160 wxButton* m_buttonSatellite; | 161 wxButton* m_buttonSatellite; |
| 162 wxButton* m_buttonUpdateIndex; | |
| 163 wxButton* m_buttonDLMan; | |
| 161 wxButton* m_buttonHelp; | 164 wxButton* m_buttonHelp; |
| 162 wxButton* m_buttonClose; | 165 wxButton* m_buttonClose; |
| 163 wxButton* m_buttonLogout; | 166 wxButton* m_buttonLogout; |
| 164 | 167 |
| 165 public: | 168 public: |
| 166 MainFrame( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT( "Searcher Remote" ), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 500,300 ), long style = wxDEFAULT_FRAME_STYLE|wxTAB_TRAVERSAL ); | 169 MainFrame( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT( "Searcher Remote" ), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 500,300 ), long style = wxDEFAULT_FRAME_STYLE|wxTAB_TRAVERSAL ); |
| 167 ~MainFrame(); | 170 ~MainFrame(); |
| 168 | 171 |
| 169 void SetServer( wxString addr, int port ) { http.SetServer( addr, port ); m_server = wxString::Format(wxT("%s:%d"),addr,port);}; | 172 void SetServer( wxString addr, int port ) { http.SetServer( addr, port ); m_server = wxString::Format(wxT("%s:%d"),addr,port); }; |
| 170 bool GetDB( void ) { return http.GetDB(); }; | 173 void SetDBdir( wxString dir ) { m_dbdir = dir; }; |
| 174 bool GetDB( int a, int h, int i ) { return http.GetDB( a, h, i ); }; | |
| 171 void SetUser( wxString user ) { m_user = user; WriteLog( wxT( "[login] " ) + m_user ); }; | 175 void SetUser( wxString user ) { m_user = user; WriteLog( wxT( "[login] " ) + m_user ); }; |
| 172 void CreateControls( void ); | 176 void CreateControls( void ); |
| 173 void SetAccelerator( void ); | 177 void SetAccelerator( void ); |
| 174 void Cmd( wxString cmd ); | 178 void Cmd( wxString cmd ); |
| 175 void Search( void ); | 179 void Search( void ); |
| 176 void PasteSearch( void ); | 180 void PasteSearch( void ); |
| 177 void LoadDB( void ); | 181 void LoadDB( void ); |
| 182 void UpdateIndex( void ); | |
| 178 bool LoadBitmap( wxScrolledWindow* sc, MyStaticBitmap* sb, wxString file ); | 183 bool LoadBitmap( wxScrolledWindow* sc, MyStaticBitmap* sb, wxString file ); |
| 179 bool LoadBitmaps( wxString date, bool reload ); | 184 bool LoadBitmaps( wxString date, bool reload ); |
| 180 void ChangeCZoom( int z ); | 185 void ChangeCZoom( int z ); |
| 181 void ChangeZoom( wxScrolledWindow* sc, MyStaticBitmap* sb, int z ); | 186 void ChangeZoom( wxScrolledWindow* sc, MyStaticBitmap* sb, int z ); |
| 182 void ChangeColor( MyStaticBitmap* sb ); | 187 void ChangeColor( MyStaticBitmap* sb ); |
| 203 void OnFocus( wxCommandEvent& event ); | 208 void OnFocus( wxCommandEvent& event ); |
| 204 void OnPlusZoom( wxCommandEvent& event ); | 209 void OnPlusZoom( wxCommandEvent& event ); |
| 205 void OnMinusZoom( wxCommandEvent& event ); | 210 void OnMinusZoom( wxCommandEvent& event ); |
| 206 void OnDark( wxCommandEvent& event ); | 211 void OnDark( wxCommandEvent& event ); |
| 207 void OnSatellite( wxCommandEvent& event ); | 212 void OnSatellite( wxCommandEvent& event ); |
| 213 void OnUpdateIndex( wxCommandEvent& event ); | |
| 214 void OnDownloadManual( wxCommandEvent& event ); | |
| 208 void OnHelp( wxCommandEvent& event ); | 215 void OnHelp( wxCommandEvent& event ); |
| 209 void OnLogout( wxCommandEvent& event ); | 216 void OnLogout( wxCommandEvent& event ); |
| 210 }; | 217 }; |
| 211 | 218 |
| 212 #endif // __RSEARCH_H__ | 219 #endif // __RSEARCH_H__ |
