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