Mercurial > mercurial > hgweb_rsearcher.cgi
diff include/rsearcher.h @ 0:d3b8cd5aeb70
make repo.
author | pyon@macmini |
---|---|
date | Sun, 30 Sep 2018 17:27:04 +0900 |
parents | |
children | eaa27e4ed5be |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/include/rsearcher.h Sun Sep 30 17:27:04 2018 +0900 @@ -0,0 +1,115 @@ +// Filename : rsearcher.h +// Last Change: 2018-09-16 Sun 18:07:49. +// + +#ifndef __RSEARCH_H__ +#define __RSEARCH_H__ + +#include <wx/artprov.h> +#include <wx/xrc/xmlres.h> +#include <wx/string.h> +#include <wx/srchctrl.h> +#include <wx/gdicmn.h> +#include <wx/font.h> +#include <wx/colour.h> +#include <wx/settings.h> +#include <wx/textctrl.h> +#include <wx/button.h> +#include <wx/notebook.h> +#include <wx/dataview.h> +#include <wx/slider.h> +#include <wx/sizer.h> +#include <wx/html/htmlwin.h> +#include <wx/frame.h> +#include <wx/statbmp.h> +#include <wx/msgdlg.h> +#include <wx/regex.h> + +class MySearchCtrl : public wxSearchCtrl +{ + DECLARE_EVENT_TABLE() + public: + MySearchCtrl( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ); + ~MySearchCtrl(); + + void OnKey( wxKeyEvent& event ); +}; + +class MyStaticBitmap : public wxStaticBitmap +{ + private: + int m_dragx, m_dragy; + int m_zoom = 0; + wxBitmap m_bmp[5]; + wxScrolledWindow* m_parent; + + public: + MyStaticBitmap( wxScrolledWindow *parent, wxWindowID id, const wxBitmap &label, const wxPoint &pos, const wxSize &size, long style, const wxString &name ); + ~MyStaticBitmap(); + + void OnLeftDown( wxMouseEvent& event ); + void OnLeftUp( wxMouseEvent& event ); + void OnMotion( wxMouseEvent& event ); + void OnWheel( wxMouseEvent& event ); + void SetImage( int i, wxBitmap bmp ) { m_bmp[i] = bmp; }; + void SetZoom( int m_zoom ); +}; + +class MainFrame : public wxFrame +{ + DECLARE_EVENT_TABLE() + private: + + protected: + enum { + ID_SEARCH = wxID_HIGHEST + 100, + ID_LIST, + ID_NBOOK, + ID_SLDR, + ID_PRINT, + ID_TEST, + }; + + MySearchCtrl* m_searchCtrl; + MyStaticBitmap* m_staticBitmap1; + MyStaticBitmap* m_staticBitmap2; + MyStaticBitmap* m_staticBitmap3; + MyStaticBitmap* m_staticBitmap4; + MyStaticBitmap* m_staticBitmap5; + + wxNotebook* m_notebook; + wxScrolledWindow* m_scrolledWindow1; + wxScrolledWindow* m_scrolledWindow2; + wxScrolledWindow* m_scrolledWindow3; + wxScrolledWindow* m_scrolledWindow4; + wxScrolledWindow* m_scrolledWindow5; + wxScrolledWindow* m_scrolledWindow6; + + wxTextCtrl* m_textCtrlName; + wxTextCtrl* m_textCtrlAddr; + wxDataViewListCtrl* m_dataViewListCtrl; + wxDataViewColumn* m_dataViewListColumnNo; + wxDataViewColumn* m_dataViewListColumnDate; + wxTextCtrl* m_textCtrlLog; + wxSlider* m_slider; + wxButton* m_buttonPrint; + wxButton* m_button; + + 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 OnItemDClicked( wxDataViewEvent& event ); + void OnNBookChanged( wxBookCtrlEvent& event ); + //void OnIdle( wxIdleEvent& event ); + void Cmd( wxString cmd ); + void SaveConfig( wxCloseEvent& event ); + void LoadBitmaps( void ); + void LoadBitmap( wxStaticBitmap* sb, wxString file ); + void GetImage( wxString hhs, wxString no ); + void OnTestButton( wxCommandEvent& event ); + void InDevelop( void ); +}; + + +#endif // __RSEARCH_H__ +