0
|
1 // Filename : myframe.h
|
5
|
2 // Last Change: 17-Oct-2011.
|
0
|
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;
|
4
|
15 wxArrayString m_undo;
|
0
|
16
|
|
17 protected:
|
|
18 wxMenuBar* m_menubarFile;
|
|
19 wxMenu* m_menuFile;
|
|
20 wxStatusBar* m_statusBar;
|
|
21
|
|
22 wxStaticText* m_staticTextWork;
|
|
23 wxDirPickerCtrl* m_dirPickerWork;
|
|
24 wxStaticText* m_staticTextDrive;
|
|
25 wxComboBox* m_comboBoxDrive;
|
|
26 wxStaticText* m_staticTextDate;
|
|
27 wxDatePickerCtrl* m_datePicker;
|
|
28 wxStaticText* m_staticTextCcn;
|
|
29 wxComboBox* m_comboBoxCcn;
|
|
30 wxButton* m_buttonMkDir;
|
|
31 wxStaticText* m_staticTextDist;
|
|
32 wxTextCtrl* m_textCtrlDist;
|
|
33
|
|
34 wxStaticText* m_staticTextName;
|
|
35 wxStaticBitmap* m_bitmapName;
|
|
36 wxStaticText* m_staticTextHhsno;
|
4
|
37 wxStaticBitmap* m_bitmapHhsno;
|
0
|
38 wxStaticText* m_staticTextGuess;
|
|
39 wxTextCtrl* m_textCtrlGuess;
|
|
40
|
|
41 wxListCtrl* m_listCtrlView;
|
1
|
42
|
|
43 wxButton* m_buttonDetect;
|
0
|
44 wxButton* m_buttonMove;
|
5
|
45 //wxButton* m_buttonMD;
|
0
|
46 wxButton* m_buttonDel;
|
|
47 wxButton* m_buttonUndo;
|
|
48
|
|
49 public:
|
|
50 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 );
|
|
51 ~MyFrame();
|
|
52
|
1
|
53 void OnParam(wxCommandEvent& event);
|
3
|
54 void OnMakeDir(wxCommandEvent& event);
|
|
55 void GetImageInfo(wxListEvent& event);
|
2
|
56 void ViewLarge(wxListEvent& event);
|
1
|
57 void OnDetect(wxCommandEvent& event);
|
|
58 void OnMove(wxCommandEvent& event);
|
|
59 void OnMoveAndDetect(wxCommandEvent& event);
|
4
|
60 void OnDelete(wxCommandEvent& event);
|
|
61 void OnUndo(wxCommandEvent& event);
|
0
|
62 void ReadyImage(void);
|
5
|
63 //void MoveImage(void);
|
0
|
64 // $B0J2<!$Dj7?$b$N(B
|
1
|
65 void OnWinSize(wxSizeEvent& event);
|
|
66 void OnWinMove(wxMoveEvent& event);
|
0
|
67 void TellLocation( void );
|
1
|
68 void OnOpenAppDir(wxCommandEvent& event);
|
0
|
69 void OnQuit(wxCommandEvent& event);
|
|
70 void SaveConfig(wxCloseEvent& event);
|
|
71 };
|
|
72
|
|
73 #endif // __myframe__
|
|
74
|