view myframe.h @ 0:79a92ddc3546

first release.
author pyon@macmini
date Wed, 16 Apr 2014 01:08:11 +0900
parents
children 9f0e0d0ae5de
line wrap: on
line source

// Filename   : myframe.cpp
// Last Change: 15-Apr-2014.
//

#ifndef __MYFRAME_H__
#define __MYFRAME_H__

#include <wx/artprov.h>
#include <wx/xrc/xmlres.h>
#include <wx/string.h>
#include <wx/button.h>
#include <wx/gdicmn.h>
#include <wx/font.h>
#include <wx/colour.h>
#include <wx/settings.h>
#include <wx/combobox.h>
#include <wx/sizer.h>
#include <wx/textctrl.h>
#include <wx/clipbrd.h>
#include <wx/frame.h>
#include <wx/regex.h>

class MyFrame : public wxFrame 
{
    DECLARE_EVENT_TABLE()
	private:
	
	protected:
		wxButton*   m_buttonPaste;
		wxComboBox* m_comboBoxDirection;
		wxButton*   m_buttonConvert;
		wxButton*   m_buttonCopy;
		wxButton*   m_buttonClear;
		wxTextCtrl* m_textCtrl;
	
	public:
		MyFrame( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT("HanZen"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 500,300 ), long style = wxDEFAULT_FRAME_STYLE|wxTAB_TRAVERSAL );
		~MyFrame();
        void OnPaste( wxCommandEvent& WXUNUSED(event) );
        void OnConvert( wxCommandEvent& WXUNUSED(event) );
        void OnCopy( wxCommandEvent& WXUNUSED(event) );
        void OnClear( wxCommandEvent& WXUNUSED(event) );
};

enum
{
    ID_PASTE = wxID_HIGHEST + 1,
    ID_CONVERT,
    ID_COPY,
    ID_CLEAR,
};

#endif //__MYFRAME_H__