Mercurial > mercurial > hgweb_rsearcher.cgi
diff include/rsearcher.h @ 13:f5ffc34f045a
manage DB.
author | pyon@macmini |
---|---|
date | Wed, 14 Nov 2018 19:43:40 +0900 |
parents | 36811fd22bd2 |
children | c1dc1fcee7fe |
line wrap: on
line diff
--- a/include/rsearcher.h Tue Nov 13 21:11:20 2018 +0900 +++ b/include/rsearcher.h Wed Nov 14 19:43:40 2018 +0900 @@ -1,5 +1,5 @@ // Filename : rsearcher.h -// Last Change: 2018-11-08 13:51:59. +// Last Change: 2018-11-14 11:34:55. // #ifndef __RSEARCH_H__ @@ -110,6 +110,7 @@ bool startup = true; wxString m_server; wxString m_hhs; + wxString m_dbdir; wxString m_user; wxArrayString m_index; wxTimer m_timer; @@ -158,6 +159,8 @@ wxButton* m_buttonMzoom; wxButton* m_buttonDark; wxButton* m_buttonSatellite; + wxButton* m_buttonUpdateIndex; + wxButton* m_buttonDLMan; wxButton* m_buttonHelp; wxButton* m_buttonClose; wxButton* m_buttonLogout; @@ -166,8 +169,9 @@ 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 ); ~MainFrame(); - void SetServer( wxString addr, int port ) { http.SetServer( addr, port ); m_server = wxString::Format(wxT("%s:%d"),addr,port);}; - bool GetDB( void ) { return http.GetDB(); }; + void SetServer( wxString addr, int port ) { http.SetServer( addr, port ); m_server = wxString::Format(wxT("%s:%d"),addr,port); }; + void SetDBdir( wxString dir ) { m_dbdir = dir; }; + bool GetDB( int a, int h, int i ) { return http.GetDB( a, h, i ); }; void SetUser( wxString user ) { m_user = user; WriteLog( wxT( "[login] " ) + m_user ); }; void CreateControls( void ); void SetAccelerator( void ); @@ -175,6 +179,7 @@ void Search( void ); void PasteSearch( void ); void LoadDB( void ); + void UpdateIndex( void ); bool LoadBitmap( wxScrolledWindow* sc, MyStaticBitmap* sb, wxString file ); bool LoadBitmaps( wxString date, bool reload ); void ChangeCZoom( int z ); @@ -205,6 +210,8 @@ void OnMinusZoom( wxCommandEvent& event ); void OnDark( wxCommandEvent& event ); void OnSatellite( wxCommandEvent& event ); + void OnUpdateIndex( wxCommandEvent& event ); + void OnDownloadManual( wxCommandEvent& event ); void OnHelp( wxCommandEvent& event ); void OnLogout( wxCommandEvent& event ); };