0
|
1 // Filename : myframe.h
|
27
|
2 // Last Change: 05-Nov-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;
|
26
|
19 wxArrayString m_hhsList;
|
11
|
20 CacheHash CH;
|
0
|
21
|
|
22 protected:
|
|
23 wxMenuBar* m_menubarFile;
|
|
24 wxMenu* m_menuFile;
|
|
25 wxStatusBar* m_statusBar;
|
|
26
|
|
27 wxStaticText* m_staticTextWork;
|
|
28 wxDirPickerCtrl* m_dirPickerWork;
|
|
29 wxStaticText* m_staticTextDrive;
|
|
30 wxComboBox* m_comboBoxDrive;
|
|
31 wxStaticText* m_staticTextDate;
|
|
32 wxDatePickerCtrl* m_datePicker;
|
8
|
33 wxButton* m_buttonNextThu;
|
0
|
34 wxStaticText* m_staticTextCcn;
|
|
35 wxComboBox* m_comboBoxCcn;
|
|
36 wxButton* m_buttonMkDir;
|
|
37 wxStaticText* m_staticTextDist;
|
|
38 wxTextCtrl* m_textCtrlDist;
|
|
39
|
|
40 wxStaticText* m_staticTextName;
|
|
41 wxStaticBitmap* m_bitmapName;
|
|
42 wxStaticText* m_staticTextHhsno;
|
4
|
43 wxStaticBitmap* m_bitmapHhsno;
|
0
|
44 wxStaticText* m_staticTextGuess;
|
|
45 wxTextCtrl* m_textCtrlGuess;
|
27
|
46 wxTextCtrl* m_textCtrlName;
|
0
|
47
|
|
48 wxListCtrl* m_listCtrlView;
|
1
|
49
|
26
|
50 wxListCtrl* m_listCtrlHhsDir;
|
1
|
51 wxButton* m_buttonDetect;
|
0
|
52 wxButton* m_buttonMove;
|
|
53 wxButton* m_buttonDel;
|
|
54 wxButton* m_buttonUndo;
|
|
55
|
|
56 public:
|
|
57 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 );
|
|
58 ~MyFrame();
|
|
59
|
1
|
60 void OnParam(wxCommandEvent& event);
|
8
|
61 void OnNextThursday(wxCommandEvent& event);
|
3
|
62 void OnMakeDir(wxCommandEvent& event);
|
23
|
63 void OnItemSelected(wxListEvent& event);
|
|
64 void OnItemDeselected(wxListEvent& event);
|
2
|
65 void ViewLarge(wxListEvent& event);
|
1
|
66 void OnDetect(wxCommandEvent& event);
|
|
67 void OnMove(wxCommandEvent& event);
|
4
|
68 void OnDelete(wxCommandEvent& event);
|
|
69 void OnUndo(wxCommandEvent& event);
|
12
|
70 void UpdateListImage(void);
|
11
|
71 void UpdateCache(void);
|
26
|
72 void ListHhsDir(void);
|
|
73 void MoveImages(void);
|
21
|
74 void OnOpenHhsDir(wxListEvent& event);
|
0
|
75 // $B0J2<!$Dj7?$b$N(B
|
11
|
76 void OnTimer(wxTimerEvent& event);
|
26
|
77 void OnChar(wxKeyEvent& event);
|
|
78 void F7_Shortcut(void);
|
11
|
79 void OnIdle(wxIdleEvent& event);
|
1
|
80 void OnWinSize(wxSizeEvent& event);
|
|
81 void OnWinMove(wxMoveEvent& event);
|
0
|
82 void TellLocation( void );
|
1
|
83 void OnOpenAppDir(wxCommandEvent& event);
|
0
|
84 void OnQuit(wxCommandEvent& event);
|
|
85 void SaveConfig(wxCloseEvent& event);
|
|
86 };
|
|
87
|
|
88 #endif // __myframe__
|
|
89
|