view include/kana.h @ 1:7b6dab24f4b8

Gui parts complete.
author pyon@macmini
date Sun, 04 Aug 2013 21:42:49 +0900
parents 0c0701a935f8
children c066fde99517
line wrap: on
line source

// Filename   : kana.h
// Last Change: 04-Aug-2013.
//
#ifndef __KANA_H__
#define __KANA_H__

#include "common.h"

class KanaDialog : public wxDialog 
{
    DECLARE_EVENT_TABLE()
	private:
        wxArrayString m_hhs;
        wxString      m_hhsno;
	
	protected:
		
		wxSearchCtrl* m_searchCtrl;
        wxCheckBox*   m_checkBox;
		wxListCtrl*   m_listCtrl;
		wxButton*     m_buttonCancel;
		wxButton*     m_buttonSet;
	
	public:
		
		KanaDialog( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style );
		~KanaDialog();
	
        void OnSearch( wxCommandEvent& WXUNUSED(event) );
        void OnFuzzyCheck( wxCommandEvent& WXUNUSED(event) );
        void OnSelectItem( wxListEvent& WXUNUSED(event) );
        void OnSet( wxCommandEvent& WXUNUSED(event) );
        void UpdateList( void );

        // Accessor
        wxString GetHhsNo() const { return m_hhsno; }
};

enum
{
    ID_SEARCHKANA = wxID_HIGHEST + 20,
    ID_LISTKANA,
    ID_FUZZY,
    ID_SETKANA,
};

#endif //__KANA_H__