diff include/rsearcher.h @ 2:7fe3417cefc8

GUI.
author pyon@macmini
date Tue, 02 Oct 2018 21:20:05 +0900
parents eaa27e4ed5be
children db4813125eb8
line wrap: on
line diff
--- a/include/rsearcher.h	Mon Oct 01 23:18:29 2018 +0900
+++ b/include/rsearcher.h	Tue Oct 02 21:20:05 2018 +0900
@@ -1,5 +1,5 @@
 // Filename   : rsearcher.h
-// Last Change: 2018-10-01 Mon 23:08:37.
+// Last Change: 2018-10-02 Tue 19:36:21.
 //
 
 #ifndef __RSEARCH_H__
@@ -23,7 +23,9 @@
 #include <wx/frame.h>
 #include <wx/statbmp.h>
 #include <wx/msgdlg.h> 
+#include <wx/filefn.h> 
 #include <wx/regex.h>
+#include <wx/textfile.h>
 
 class MySearchCtrl : public wxSearchCtrl
 {
@@ -59,6 +61,10 @@
 {
 	DECLARE_EVENT_TABLE()
 	private:
+		bool		  startup = true;
+		wxString	  m_server;
+		wxString	  m_hhs;
+		wxArrayString m_index;
 	
 	protected:
 		enum {
@@ -99,17 +105,23 @@
 	public:
 		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 server ) { m_server = server; };
+		void CreateControls( void );
+		void Cmd( wxString cmd );
+		void Search( void );
+		void LoadIndex( void );
+        void LoadBitmap( wxScrolledWindow* sc, wxStaticBitmap* sb, wxString file );
+        void LoadBitmaps( wxString date );
+        void GetImages( wxString hhs, wxString date );
+		void RemoveFile( wxString pattern );
+		void SaveConfig( wxCloseEvent& event );
+        void InDevelop( bool );
+
+		void OnItemSelected( wxDataViewEvent& event );
 		void OnItemDClicked( wxDataViewEvent& event );
         void OnNBookChanged( wxBookCtrlEvent& event );
 		//void OnIdle( wxIdleEvent& event );
-		void Cmd( wxString cmd );
-		void SaveConfig( wxCloseEvent& event );
-		void CreateControls( void );
-        void LoadBitmaps( void );
-        void LoadBitmap( wxScrolledWindow* sc, wxStaticBitmap* sb, wxString file );
-        void GetImage( wxString hhs, wxString no );
         void OnTestButton( wxCommandEvent& event );
-        void InDevelop( bool );
 };