diff include/myframe.h @ 0:00c5161d67b8 default tip

first release.
author pyon@macmini
date Tue, 29 Oct 2013 19:23:03 +0900
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/include/myframe.h	Tue Oct 29 19:23:03 2013 +0900
@@ -0,0 +1,59 @@
+// Filename   : myframe.h
+// Last Change: 29-Oct-2013.
+//
+
+#ifndef __MYFRAME_H__
+#define __MYFRAME_H__
+
+#include <wx/artprov.h>
+#include <wx/xrc/xmlres.h>
+#include <wx/string.h>
+#include <wx/textctrl.h>
+#include <wx/gdicmn.h>
+#include <wx/font.h>
+#include <wx/colour.h>
+#include <wx/settings.h>
+#include <wx/button.h>
+#include <wx/sizer.h>
+#include <wx/dir.h>
+#include <wx/frame.h>
+
+/// Class MyFrame
+class MyFrame : public wxFrame 
+{
+    DECLARE_EVENT_TABLE()
+	private:
+        bool state1;
+        bool state2;
+        bool state3;
+	
+	protected:
+		wxTextCtrl* m_textCtrl1l;
+		wxButton*   m_button1;
+		wxTextCtrl* m_textCtrl1r;
+		wxTextCtrl* m_textCtrl2l;
+		wxButton*   m_button2;
+		wxTextCtrl* m_textCtrl2r;
+		wxTextCtrl* m_textCtrl3l;
+		wxButton*   m_button3;
+		wxTextCtrl* m_textCtrl3r;
+	
+	public:
+		MyFrame( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style );
+		~MyFrame();
+	
+        void OnButton1( wxCommandEvent& WXUNUSED(event) );
+        void OnButton2( wxCommandEvent& WXUNUSED(event) );
+        void OnButton3( wxCommandEvent& WXUNUSED(event) );
+        void InitControl( void );
+        void Exchange( wxTextCtrl* left, wxTextCtrl* right, bool sw );
+};
+
+enum {
+    ID_BTN1 = wxID_HIGHEST + 1,
+    ID_BTN2,
+    ID_BTN3,
+};
+
+#endif //__MYFRAME_H__
+