0
|
1 // Filename : myframe.h
|
21
|
2 // Last Change: 26-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
|
21
|
48 wxListCtrl* m_listCtrlDir;
|
1
|
49 wxButton* m_buttonDetect;
|
0
|
50 wxButton* m_buttonMove;
|
|
51 wxButton* m_buttonDel;
|
|
52 wxButton* m_buttonUndo;
|
|
53
|
|
54 public:
|
|
55 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 );
|
|
56 ~MyFrame();
|
|
57
|
1
|
58 void OnParam(wxCommandEvent& event);
|
8
|
59 void OnNextThursday(wxCommandEvent& event);
|
3
|
60 void OnMakeDir(wxCommandEvent& event);
|
|
61 void GetImageInfo(wxListEvent& event);
|
2
|
62 void ViewLarge(wxListEvent& event);
|
1
|
63 void OnDetect(wxCommandEvent& event);
|
|
64 void OnMove(wxCommandEvent& event);
|
|
65 void OnMoveAndDetect(wxCommandEvent& event);
|
4
|
66 void OnDelete(wxCommandEvent& event);
|
|
67 void OnUndo(wxCommandEvent& event);
|
12
|
68 void UpdateListImage(void);
|
11
|
69 void UpdateCache(void);
|
21
|
70 void OnOpenHhsDir(wxListEvent& event);
|
0
|
71 // $B0J2<!$Dj7?$b$N(B
|
11
|
72 void OnTimer(wxTimerEvent& event);
|
|
73 void OnIdle(wxIdleEvent& event);
|
1
|
74 void OnWinSize(wxSizeEvent& event);
|
|
75 void OnWinMove(wxMoveEvent& event);
|
0
|
76 void TellLocation( void );
|
1
|
77 void OnOpenAppDir(wxCommandEvent& event);
|
0
|
78 void OnQuit(wxCommandEvent& event);
|
|
79 void SaveConfig(wxCloseEvent& event);
|
|
80 };
|
|
81
|
|
82 #endif // __myframe__
|
|
83
|