0
|
1 // Filename : myframe.h
|
|
2 // Last Change: 15-Oct-2011.
|
|
3 //
|
|
4
|
|
5 #ifndef __myframe__
|
|
6 #define __myframe__
|
|
7
|
|
8 #include "common.h"
|
|
9
|
|
10 class MyFrame : public wxFrame
|
|
11 {
|
|
12 DECLARE_EVENT_TABLE()
|
|
13 private:
|
|
14 wxImageList* m_imageList;
|
|
15
|
|
16 protected:
|
|
17 wxMenuBar* m_menubarFile;
|
|
18 wxMenu* m_menuFile;
|
|
19 wxStatusBar* m_statusBar;
|
|
20
|
|
21 wxStaticText* m_staticTextWork;
|
|
22 wxDirPickerCtrl* m_dirPickerWork;
|
|
23 wxStaticText* m_staticTextDrive;
|
|
24 wxComboBox* m_comboBoxDrive;
|
|
25 wxStaticText* m_staticTextDate;
|
|
26 wxDatePickerCtrl* m_datePicker;
|
|
27 wxStaticText* m_staticTextCcn;
|
|
28 wxComboBox* m_comboBoxCcn;
|
|
29 wxButton* m_buttonMkDir;
|
|
30 wxStaticText* m_staticTextDist;
|
|
31 wxTextCtrl* m_textCtrlDist;
|
|
32
|
|
33 wxStaticText* m_staticTextName;
|
|
34 wxStaticBitmap* m_bitmapName;
|
|
35 wxStaticText* m_staticTextHhsno;
|
|
36 wxStaticBitmap* m_bitmapHHsno;
|
|
37 wxStaticText* m_staticTextGuess;
|
|
38 wxTextCtrl* m_textCtrlGuess;
|
|
39
|
|
40 wxListCtrl* m_listCtrlView;
|
1
|
41
|
|
42 wxButton* m_buttonDetect;
|
0
|
43 wxButton* m_buttonMove;
|
1
|
44 wxButton* m_buttonMD;
|
0
|
45 wxButton* m_buttonDel;
|
|
46 wxButton* m_buttonUndo;
|
|
47
|
|
48 public:
|
|
49 MyFrame( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxEmptyString, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxDEFAULT_FRAME_STYLE|wxTAB_TRAVERSAL );
|
|
50 ~MyFrame();
|
|
51
|
1
|
52 void OnParam(wxCommandEvent& event);
|
0
|
53 void MakeDir(wxCommandEvent& event);
|
1
|
54 void ToggleSelect(wxListEvent& event);
|
|
55 void OnDetect(wxCommandEvent& event);
|
|
56 void OnMove(wxCommandEvent& event);
|
|
57 void OnMoveAndDetect(wxCommandEvent& event);
|
0
|
58 void ReadyImage(void);
|
|
59 void MoveImage(void);
|
|
60 // $B0J2<!$Dj7?$b$N(B
|
1
|
61 void OnWinSize(wxSizeEvent& event);
|
|
62 void OnWinMove(wxMoveEvent& event);
|
0
|
63 void TellLocation( void );
|
1
|
64 void OnOpenAppDir(wxCommandEvent& event);
|
0
|
65 void OnQuit(wxCommandEvent& event);
|
|
66 void SaveConfig(wxCloseEvent& event);
|
|
67 };
|
|
68
|
|
69 #endif // __myframe__
|
|
70
|