2
|
1 // Filename : myframe.h
|
4
|
2 // Last Change: 05-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>
|
|
29 #include <wx/frame.h>
|
|
30 #endif
|
|
31
|
|
32
|
|
33 //////////////////////////////////////////////////////////////////////////
|
|
34 class MyFrame : public wxFrame
|
|
35 {
|
|
36 DECLARE_EVENT_TABLE()
|
|
37 public:
|
|
38 wxMenuBar* m_menubar;
|
|
39 wxMenu* m_menuFile;
|
|
40 wxStatusBar* m_statusBar;
|
|
41
|
|
42 wxStaticText* m_staticTextWork;
|
|
43 wxDirPickerCtrl* m_dirPickerWork;
|
|
44 wxButton* m_buttonDetWhite;
|
|
45
|
|
46 wxStaticText* m_staticTextMoveTo;
|
|
47 wxComboBox* m_comboBoxMoveDrive;
|
|
48 wxDatePickerCtrl* m_datePickerCcn;
|
|
49 wxComboBox* m_comboBoxCcn;
|
3
|
50 wxButton* m_buttonSetDir;
|
2
|
51 wxButton* m_buttonMkDir;
|
|
52
|
|
53 wxStaticText* m_staticTextDummy;
|
|
54 wxTextCtrl* m_textCtrlMoveDir;
|
|
55 wxButton* m_buttonDoMove;
|
|
56
|
|
57 wxListCtrl* m_listCtrl;
|
|
58
|
|
59 MyFrame( wxWindow* parent, wxWindowID id, const wxString& title );
|
|
60 ~MyFrame();
|
|
61
|
|
62 void OnSize( wxSizeEvent& event );
|
|
63 void OnMove( wxMoveEvent& event );
|
|
64 void OnQuit( wxCommandEvent& event );
|
|
65 void OnAbout( wxCommandEvent& event );
|
4
|
66 void OnOpenWorkDir(wxCommandEvent& event);
|
2
|
67 void OnDetectWhite( wxCommandEvent& event );
|
3
|
68 void SetDir( wxCommandEvent& event );
|
|
69 void MakeDir( wxCommandEvent& event );
|
4
|
70 void MoveImages( wxCommandEvent& event );
|
2
|
71 void SaveConfig( wxCloseEvent& event );
|
|
72 void TellLocation( void );
|
|
73 };
|
|
74
|
|
75 #endif
|
|
76 //__MYFRAME__
|
|
77
|