comparison myframe.h @ 0:ebc42d7a0010

First Release.
author pyon@macmini
date Fri, 24 Jan 2014 20:35:59 +0900
parents
children cc1f1fa544a4
comparison
equal deleted inserted replaced
-1:000000000000 0:ebc42d7a0010
1 // Filename : myframe.h
2 // Last Change: 21-Jan-2014.
3 //
4 #ifndef __MYFRAME_H__
5 #define __MYFRAME_H__
6
7 #include <wx/artprov.h>
8 #include <wx/xrc/xmlres.h>
9 #include <wx/string.h>
10 #include <wx/stattext.h>
11 #include <wx/gdicmn.h>
12 #include <wx/font.h>
13 #include <wx/colour.h>
14 #include <wx/settings.h>
15 #include <wx/textctrl.h>
16 #include <wx/sizer.h>
17 #include <wx/combobox.h>
18 #include <wx/filepicker.h>
19 #include <wx/button.h>
20 #include <wx/statusbr.h>
21 #include <wx/frame.h>
22
23 ///////////////////////////////////////////////////////////////////////////
24
25 ///////////////////////////////////////////////////////////////////////////////
26 /// Class MainFrame
27 ///////////////////////////////////////////////////////////////////////////////
28 class MyFrame : public wxFrame
29 {
30 DECLARE_EVENT_TABLE()
31 private:
32 long w, h;
33 int choice_type;
34 wxString out_dir;
35
36 protected:
37 wxStaticText* m_staticTextSource;
38 wxTextCtrl* m_textCtrlSource;
39 wxStaticText* m_staticTextConfig;
40 wxStaticText* m_staticTextType;
41 wxComboBox* m_comboBoxType;
42 wxStaticText* m_staticTextSize;
43 wxStaticText* m_staticTextWidth;
44 wxTextCtrl* m_textCtrlWidth;
45 wxStaticText* m_staticTextHeight;
46 wxTextCtrl* m_textCtrlHeight;
47 wxStaticText* m_staticTextOutput;
48 wxDirPickerCtrl* m_dirPicker;
49 wxButton* m_buttonExec;
50 wxButton* m_buttonExit;
51
52 public:
53 MyFrame( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style );
54 ~MyFrame();
55 void OnExec( wxCommandEvent& WXUNUSED(event) );
56 void OnExit( wxCommandEvent& WXUNUSED(event) );
57 void WarnMessage( wxString msg );
58 bool ConvertAFile( wxString file );
59 bool ConvertFiles( wxString dir );
60 };
61
62 enum
63 {
64 ID_EXEC = wxID_HIGHEST + 1,
65 ID_EXIT,
66 };
67
68 #endif //__MYFRAME_H__
69