0
|
1 // Filename : myframe.h
|
|
2 // Last Change: 20-Oct-2012.
|
|
3 //
|
|
4 #ifndef __MYFRAME_H__
|
|
5 #define __MYFRAME_H__
|
|
6
|
|
7 #include "common.h"
|
|
8
|
|
9 class MyFrame : public wxFrame
|
|
10 {
|
|
11 DECLARE_EVENT_TABLE()
|
|
12 private:
|
|
13
|
|
14 protected:
|
|
15 wxMenuBar* m_menubar;
|
|
16 wxMenu* m_menuFile;
|
|
17
|
|
18 wxStaticText* m_staticText1;
|
|
19 wxDirPickerCtrl* m_dirPickerWatch;
|
|
20 wxStaticText* m_staticText2;
|
|
21 wxTextCtrl* m_textCtrlFile;
|
|
22 wxStaticText* m_staticText3;
|
|
23 wxTextCtrl* m_textCtrlCommand;
|
|
24 wxStaticText* m_staticText4;
|
1
|
25 wxTextCtrl* m_textCtrlWait;
|
|
26 wxStaticText* m_staticText5;
|
0
|
27 wxDirPickerCtrl* m_dirPickerMove;
|
1
|
28 wxStaticText* m_staticText6;
|
|
29 wxCheckBox* m_checkBoxCopy;
|
|
30 wxStaticText* m_staticTextDummy1;
|
|
31 wxStaticText* m_staticTextDummy2;
|
|
32 wxStaticText* m_staticTextDummy3;
|
0
|
33 wxToggleButton* m_toggleBtn;
|
|
34
|
|
35 wxFileSystemWatcher* m_watcher;
|
|
36
|
|
37 public:
|
|
38 MyFrame( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style );
|
|
39 ~MyFrame();
|
|
40
|
|
41 void OnFileSystemEvent( wxFileSystemWatcherEvent& event );
|
|
42 void OnWatch( wxCommandEvent& WXUNUSED(event) );
|
|
43
|
|
44 void OnWinSize( wxSizeEvent& event );
|
|
45 void OnWinMove( wxMoveEvent& WXUNUSED(event) );
|
|
46 void TellLocation( void );
|
|
47 void OnQuit( wxCommandEvent& WXUNUSED(event) );
|
|
48 void OnAbout( wxCommandEvent& WXUNUSED(event) );
|
|
49 void SaveConfig( wxCloseEvent& WXUNUSED(event) );
|
|
50 };
|
|
51
|
|
52 enum {
|
|
53 ID_MNAPPDIR = wxID_HIGHEST + 10,
|
|
54 ID_MNABOUT,
|
|
55 ID_WATCHDIR,
|
|
56 ID_FILENAME,
|
|
57 ID_COMMAND,
|
1
|
58 ID_WAIT,
|
0
|
59 ID_MOVEDIR,
|
1
|
60 ID_COPY,
|
0
|
61 ID_TOGGLEWATCH,
|
|
62 };
|
|
63
|
|
64 #endif //__MYFRAME_H__
|
|
65
|