0
|
1 // Filename : myframe.h
|
12
|
2 // Last Change: 23-Oct-2011.
|
0
|
3 //
|
|
4
|
|
5 #ifndef __myframe__
|
|
6 #define __myframe__
|
|
7
|
|
8 #include "common.h"
|
11
|
9 #include "cache.h"
|
|
10 WX_DECLARE_HASH_MAP( wxString, CacheItem*, wxStringHash, wxStringEqual, CacheHash );
|
0
|
11
|
|
12 class MyFrame : public wxFrame
|
|
13 {
|
|
14 DECLARE_EVENT_TABLE()
|
|
15 private:
|
|
16 wxImageList* m_imageList;
|
4
|
17 wxArrayString m_undo;
|
11
|
18 wxTimer m_timer;
|
|
19 CacheHash CH;
|
0
|
20
|
|
21 protected:
|
|
22 wxMenuBar* m_menubarFile;
|
|
23 wxMenu* m_menuFile;
|
|
24 wxStatusBar* m_statusBar;
|
|
25
|
|
26 wxStaticText* m_staticTextWork;
|
|
27 wxDirPickerCtrl* m_dirPickerWork;
|
|
28 wxStaticText* m_staticTextDrive;
|
|
29 wxComboBox* m_comboBoxDrive;
|
|
30 wxStaticText* m_staticTextDate;
|
|
31 wxDatePickerCtrl* m_datePicker;
|
8
|
32 wxButton* m_buttonNextThu;
|
0
|
33 wxStaticText* m_staticTextCcn;
|
|
34 wxComboBox* m_comboBoxCcn;
|
|
35 wxButton* m_buttonMkDir;
|
|
36 wxStaticText* m_staticTextDist;
|
|
37 wxTextCtrl* m_textCtrlDist;
|
|
38
|
|
39 wxStaticText* m_staticTextName;
|
|
40 wxStaticBitmap* m_bitmapName;
|
|
41 wxStaticText* m_staticTextHhsno;
|
4
|
42 wxStaticBitmap* m_bitmapHhsno;
|
0
|
43 wxStaticText* m_staticTextGuess;
|
|
44 wxTextCtrl* m_textCtrlGuess;
|
|
45
|
|
46 wxListCtrl* m_listCtrlView;
|
1
|
47
|
|
48 wxButton* m_buttonDetect;
|
0
|
49 wxButton* m_buttonMove;
|
|
50 wxButton* m_buttonDel;
|
|
51 wxButton* m_buttonUndo;
|
|
52
|
|
53 public:
|
|
54 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 );
|
|
55 ~MyFrame();
|
|
56
|
1
|
57 void OnParam(wxCommandEvent& event);
|
8
|
58 void OnNextThursday(wxCommandEvent& event);
|
3
|
59 void OnMakeDir(wxCommandEvent& event);
|
|
60 void GetImageInfo(wxListEvent& event);
|
2
|
61 void ViewLarge(wxListEvent& event);
|
1
|
62 void OnDetect(wxCommandEvent& event);
|
|
63 void OnMove(wxCommandEvent& event);
|
|
64 void OnMoveAndDetect(wxCommandEvent& event);
|
4
|
65 void OnDelete(wxCommandEvent& event);
|
|
66 void OnUndo(wxCommandEvent& event);
|
12
|
67 void UpdateListImage(void);
|
11
|
68 void UpdateCache(void);
|
0
|
69 // $B0J2<!$Dj7?$b$N(B
|
11
|
70 void OnTimer(wxTimerEvent& event);
|
|
71 void OnIdle(wxIdleEvent& event);
|
1
|
72 void OnWinSize(wxSizeEvent& event);
|
|
73 void OnWinMove(wxMoveEvent& event);
|
0
|
74 void TellLocation( void );
|
1
|
75 void OnOpenAppDir(wxCommandEvent& event);
|
0
|
76 void OnQuit(wxCommandEvent& event);
|
|
77 void SaveConfig(wxCloseEvent& event);
|
|
78 };
|
|
79
|
|
80 #endif // __myframe__
|
|
81
|