Mercurial > mercurial > hgweb_rsearcher.cgi
comparison include/rsearcher.h @ 2:7fe3417cefc8
GUI.
author | pyon@macmini |
---|---|
date | Tue, 02 Oct 2018 21:20:05 +0900 |
parents | eaa27e4ed5be |
children | db4813125eb8 |
comparison
equal
deleted
inserted
replaced
1:eaa27e4ed5be | 2:7fe3417cefc8 |
---|---|
1 // Filename : rsearcher.h | 1 // Filename : rsearcher.h |
2 // Last Change: 2018-10-01 Mon 23:08:37. | 2 // Last Change: 2018-10-02 Tue 19:36:21. |
3 // | 3 // |
4 | 4 |
5 #ifndef __RSEARCH_H__ | 5 #ifndef __RSEARCH_H__ |
6 #define __RSEARCH_H__ | 6 #define __RSEARCH_H__ |
7 | 7 |
21 #include <wx/sizer.h> | 21 #include <wx/sizer.h> |
22 #include <wx/html/htmlwin.h> | 22 #include <wx/html/htmlwin.h> |
23 #include <wx/frame.h> | 23 #include <wx/frame.h> |
24 #include <wx/statbmp.h> | 24 #include <wx/statbmp.h> |
25 #include <wx/msgdlg.h> | 25 #include <wx/msgdlg.h> |
26 #include <wx/filefn.h> | |
26 #include <wx/regex.h> | 27 #include <wx/regex.h> |
28 #include <wx/textfile.h> | |
27 | 29 |
28 class MySearchCtrl : public wxSearchCtrl | 30 class MySearchCtrl : public wxSearchCtrl |
29 { | 31 { |
30 DECLARE_EVENT_TABLE() | 32 DECLARE_EVENT_TABLE() |
31 public: | 33 public: |
57 | 59 |
58 class MainFrame : public wxFrame | 60 class MainFrame : public wxFrame |
59 { | 61 { |
60 DECLARE_EVENT_TABLE() | 62 DECLARE_EVENT_TABLE() |
61 private: | 63 private: |
64 bool startup = true; | |
65 wxString m_server; | |
66 wxString m_hhs; | |
67 wxArrayString m_index; | |
62 | 68 |
63 protected: | 69 protected: |
64 enum { | 70 enum { |
65 ID_SEARCH = wxID_HIGHEST + 100, | 71 ID_SEARCH = wxID_HIGHEST + 100, |
66 ID_LIST, | 72 ID_LIST, |
97 wxButton* m_buttonTest; | 103 wxButton* m_buttonTest; |
98 | 104 |
99 public: | 105 public: |
100 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 ); | 106 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 ); |
101 ~MainFrame(); | 107 ~MainFrame(); |
108 void SetServer( wxString server ) { m_server = server; }; | |
109 void CreateControls( void ); | |
110 void Cmd( wxString cmd ); | |
111 void Search( void ); | |
112 void LoadIndex( void ); | |
113 void LoadBitmap( wxScrolledWindow* sc, wxStaticBitmap* sb, wxString file ); | |
114 void LoadBitmaps( wxString date ); | |
115 void GetImages( wxString hhs, wxString date ); | |
116 void RemoveFile( wxString pattern ); | |
117 void SaveConfig( wxCloseEvent& event ); | |
118 void InDevelop( bool ); | |
119 | |
120 void OnItemSelected( wxDataViewEvent& event ); | |
102 void OnItemDClicked( wxDataViewEvent& event ); | 121 void OnItemDClicked( wxDataViewEvent& event ); |
103 void OnNBookChanged( wxBookCtrlEvent& event ); | 122 void OnNBookChanged( wxBookCtrlEvent& event ); |
104 //void OnIdle( wxIdleEvent& event ); | 123 //void OnIdle( wxIdleEvent& event ); |
105 void Cmd( wxString cmd ); | |
106 void SaveConfig( wxCloseEvent& event ); | |
107 void CreateControls( void ); | |
108 void LoadBitmaps( void ); | |
109 void LoadBitmap( wxScrolledWindow* sc, wxStaticBitmap* sb, wxString file ); | |
110 void GetImage( wxString hhs, wxString no ); | |
111 void OnTestButton( wxCommandEvent& event ); | 124 void OnTestButton( wxCommandEvent& event ); |
112 void InDevelop( bool ); | |
113 }; | 125 }; |
114 | 126 |
115 | 127 |
116 #endif // __RSEARCH_H__ | 128 #endif // __RSEARCH_H__ |
117 | 129 |