2
|
1 // Filename : myframe.h
|
8
|
2 // Last Change: 13-Oct-2011.
|
2
|
3 //
|
|
4 #ifndef MYFRAME
|
|
5 #define MYFRAME
|
|
6 #include "wx/wxprec.h"
|
|
7
|
|
8 #ifndef WX_PRECOMP
|
4
|
9 #include <wx/wx.h>
|
2
|
10 #include <wx/icon.h>
|
4
|
11 #include <wx/dir.h>
|
2
|
12 #include <wx/menu.h>
|
|
13 #include <wx/string.h>
|
|
14 #include <wx/statusbr.h>
|
4
|
15 #include <wx/stattext.h>
|
2
|
16 #include <wx/button.h>
|
4
|
17 #include <wx/datectrl.h>
|
2
|
18 #include <wx/dateevt.h>
|
4
|
19 #include <wx/textctrl.h>
|
|
20 #include <wx/filepicker.h>
|
|
21 #include <wx/filename.h>
|
2
|
22 #include <wx/listctrl.h>
|
4
|
23 #include <wx/dir.h>
|
|
24 #include <wx/file.h>
|
|
25 #include <wx/tokenzr.h>
|
|
26 #include <wx/stdpaths.h>
|
2
|
27 #include <wx/sizer.h>
|
|
28 #include <wx/combobox.h>
|
8
|
29 #include <wx/progdlg.h>
|
2
|
30 #include <wx/frame.h>
|
|
31 #endif
|
|
32
|
|
33
|
|
34 //////////////////////////////////////////////////////////////////////////
|
|
35 class MyFrame : public wxFrame
|
|
36 {
|
|
37 DECLARE_EVENT_TABLE()
|
|
38 public:
|
|
39 wxMenuBar* m_menubar;
|
|
40 wxMenu* m_menuFile;
|
|
41 wxStatusBar* m_statusBar;
|
|
42
|
|
43 wxStaticText* m_staticTextWork;
|
|
44 wxDirPickerCtrl* m_dirPickerWork;
|
|
45 wxButton* m_buttonDetWhite;
|
|
46
|
|
47 wxStaticText* m_staticTextMoveTo;
|
|
48 wxComboBox* m_comboBoxMoveDrive;
|
|
49 wxDatePickerCtrl* m_datePickerCcn;
|
|
50 wxComboBox* m_comboBoxCcn;
|
3
|
51 wxButton* m_buttonSetDir;
|
2
|
52 wxButton* m_buttonMkDir;
|
|
53
|
|
54 wxStaticText* m_staticTextDummy;
|
|
55 wxTextCtrl* m_textCtrlMoveDir;
|
|
56 wxButton* m_buttonDoMove;
|
|
57
|
|
58 wxListCtrl* m_listCtrl;
|
|
59
|
|
60 MyFrame( wxWindow* parent, wxWindowID id, const wxString& title );
|
|
61 ~MyFrame();
|
|
62
|
|
63 void OnSize( wxSizeEvent& event );
|
|
64 void OnMove( wxMoveEvent& event );
|
|
65 void OnQuit( wxCommandEvent& event );
|
|
66 void OnAbout( wxCommandEvent& event );
|
4
|
67 void OnOpenWorkDir(wxCommandEvent& event);
|
2
|
68 void OnDetectWhite( wxCommandEvent& event );
|
3
|
69 void SetDir( wxCommandEvent& event );
|
|
70 void MakeDir( wxCommandEvent& event );
|
5
|
71 void OnOpenHhsDir(wxListEvent& event);
|
4
|
72 void MoveImages( wxCommandEvent& event );
|
2
|
73 void SaveConfig( wxCloseEvent& event );
|
|
74 void TellLocation( void );
|
|
75 };
|
|
76
|
|
77 #endif
|
|
78 //__MYFRAME__
|
|
79
|