view include/miniframe.h @ 21:a2ad87cad48b

Enhanced the convenience of Cache dialog.
author pyon@macmini
date Wed, 17 Dec 2014 00:52:43 +0900
parents
children
line wrap: on
line source

// Filename   : miniframe.h
// Last Change: 04-Dec-2014.
//
#ifndef __MINIFRAME_H__
#define __MINIFRAME_H__

#include "common.h"

class MiniFrame;
///////////////////////////////////////////////////////////////
// カスタム検索ボックス
class MiniSearchBox : public wxSearchCtrl
{
    DECLARE_EVENT_TABLE()
	private:
        wxArrayString m_jhhsno;

	public:
		MiniSearchBox( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style );
		~MiniSearchBox();

        void OnKey( wxKeyEvent& event );
};


///////////////////////////////////////////////////////////////
// メインフレーム
class MiniFrame : public wxFrame 
{
    DECLARE_EVENT_TABLE()
	private:
        wxFileConfig*     config;
        wxString          conf_file;
        wxString          m_hhsno;
        wxString          m_shared;
	
	protected:
		wxStaticText*     m_staticText; // コマンド?
		MiniSearchBox*    m_searchBox;
	
	public:
		MiniFrame( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style );
		~MiniFrame();
		
        void OnOpenAppDir( wxCommandEvent& WXUNUSED(event) );
        void OpenAppDir( void );
        void OpenHhsDir( wxString path );
        void Transform( wxString mode );
        void PrintImages( wxString path );
        void OnCommand( wxCommandEvent& WXUNUSED(event) );
        void LoadParam( void );
};

enum {
    ID_MSEARCH = wxID_HIGHEST + 10,
};

#endif //__MINIFRAME_H__