45
|
1 // Filename : mover.h
|
|
2 // Last Change: 2020-04-15 12:02:47.
|
|
3 //
|
|
4 #pragma once
|
|
5
|
|
6 #include <wx/artprov.h>
|
|
7 #include <wx/xrc/xmlres.h>
|
|
8 #include <wx/string.h>
|
|
9 #include <wx/stattext.h>
|
|
10 #include <wx/gdicmn.h>
|
|
11 #include <wx/font.h>
|
|
12 #include <wx/colour.h>
|
|
13 #include <wx/settings.h>
|
|
14 #include <wx/filepicker.h>
|
|
15 #include <wx/listctrl.h>
|
|
16 #include <wx/bitmap.h>
|
|
17 #include <wx/image.h>
|
|
18 #include <wx/icon.h>
|
|
19 #include <wx/button.h>
|
|
20 #include <wx/sizer.h>
|
|
21 #include <wx/checkbox.h>
|
|
22 #include <wx/frame.h>
|
|
23 #include <wx/dataview.h>
|
|
24 #include <wx/statbmp.h>
|
|
25 #include <wx/textctrl.h>
|
|
26 #include <wx/datectrl.h>
|
|
27 #include <wx/dateevt.h>
|
|
28 #include <wx/choice.h>
|
|
29 #include <wx/gbsizer.h>
|
|
30
|
|
31 /* marksheet rect */
|
|
32 #define MS_X 1340
|
|
33 #define MS_Y 324
|
|
34 #define MS_W 596
|
|
35 #define MS_H 509
|
|
36
|
|
37 /* lookin-window width & height */
|
|
38 #define HNAME_WW 288
|
|
39 #define HNAME_WH 86
|
|
40 #define HNO_WW 288
|
|
41 #define HNO_WH 49
|
|
42
|
|
43 /* sub image size */
|
|
44 #define HNAME_X 238
|
|
45 #define HNAME_Y 540
|
|
46 #define HNAME_W 656
|
|
47 #define HNAME_H 170
|
|
48 #define HNO_X 1340
|
|
49 #define HNO_Y 238
|
|
50 #define HNO_W 600
|
|
51 #define HNO_H 94
|
|
52
|
|
53 /* thumbnail size */
|
|
54 #define THUMB_W 115
|
|
55 #define THUMB_H 155
|
|
56
|
|
57 /* right pane size */
|
|
58 #define RIGHT_W 940
|
|
59 #define RIGHT_H1 100
|
|
60 #define RIGHT_H2 220
|
|
61
|
|
62 WX_DECLARE_STRING_HASH_MAP(wxString, HhsHash);
|
|
63
|
|
64 class MoveFrame : public wxFrame
|
|
65 {
|
|
66 private:
|
|
67 HhsHash m_hhash;
|
|
68 wxArrayString m_sss;
|
|
69 wxString m_addr, m_port;
|
|
70
|
|
71 protected:
|
|
72 wxDirPickerCtrl* m_dirPicker;
|
|
73 wxButton* m_buttonAuto;
|
|
74 wxCheckBox* m_checkBox;
|
|
75
|
|
76 wxDataViewListCtrl* m_dataViewListCtrl;
|
|
77 wxDataViewColumn* m_dataViewListColumnNo;
|
|
78 wxDataViewColumn* m_dataViewListColumnHno;
|
|
79 wxDataViewColumn* m_dataViewListColumnName;
|
|
80 wxDataViewColumn* m_dataViewListColumnChecked;
|
|
81
|
|
82 wxStaticBitmap* m_bitmapName;
|
|
83 wxTextCtrl* m_textCtrlName;
|
|
84
|
|
85 wxStaticBitmap* m_bitmapHno;
|
|
86 wxTextCtrl* m_textCtrlHno;
|
|
87
|
|
88 wxListView* m_listViewThumb;
|
|
89
|
|
90 wxStaticBitmap* m_bitmapTk;
|
|
91 wxStaticBitmap* m_bitmapIk;
|
|
92
|
|
93 wxStaticText* m_staticTextDate;
|
|
94 wxDatePickerCtrl* m_datePicker;
|
|
95 wxStaticText* m_staticTextCcn;
|
|
96 wxChoice* m_choiceCcn;
|
|
97 wxButton* m_buttonSave;
|
|
98 wxTextCtrl* m_textCtrlMsg;
|
|
99
|
|
100 virtual void OnKey(wxKeyEvent& event);
|
|
101 virtual void OnAuto(wxCommandEvent& event);
|
|
102 virtual void OnListChar(wxKeyEvent& event);
|
|
103 virtual void OnSelect(wxDataViewEvent& event);
|
|
104 virtual void OnHnoChar(wxKeyEvent& event);
|
|
105 virtual void OnHno(wxCommandEvent& event);
|
|
106 virtual void OnCheck(wxCommandEvent& event);
|
|
107 virtual void OnSave(wxCommandEvent& event);
|
|
108 virtual void OnThumbDeselected(wxListEvent& event);
|
|
109 virtual void OnThumbSelected(wxListEvent& event);
|
|
110 virtual void OnThumbDClick(wxListEvent& event);
|
|
111
|
|
112 void CreateControls();
|
|
113 void InitializeControlsValue();
|
|
114 void LoadDefaultImages();
|
|
115 void LoadDB();
|
|
116 void AutoDetect();
|
|
117 void ThumbnailPaper();
|
|
118 wxString AnalizeHhsno(wxString file);
|
|
119
|
|
120 public:
|
|
121 MoveFrame(wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxEmptyString, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 500,300 ), long style = wxDEFAULT_FRAME_STYLE|wxTAB_TRAVERSAL);
|
|
122 ~MoveFrame();
|
|
123 };
|
|
124
|