0
|
1 // Filename : mainframe.cpp
|
2
|
2 // Last Change: 2019-06-10 月 12:48:48.
|
0
|
3 //
|
|
4
|
|
5 #include "id.h"
|
|
6 #include "appconf.h"
|
|
7 #include "mainframe.h"
|
|
8
|
|
9 MainFrame::MainFrame( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style )
|
|
10 : wxFrame( parent, id, title, pos, size, style )
|
|
11 {
|
|
12 CreateControls();
|
|
13
|
1
|
14 AppConf appconf;
|
|
15 wxString dir = appconf.LoadWork();
|
|
16 m_dirPicker->SetPath( dir );
|
|
17
|
0
|
18 m_filelist = new FileList();
|
1
|
19 m_filelist->SetDirectory( dir );
|
0
|
20
|
|
21 m_lookWindow1->SetDefaultParams( 1, SPL_W, SPL_H, SPL_DCW, SPL_DCH );
|
|
22 m_lookWindow2->SetDefaultParams( 2, OPN1_W, OPN1_H, OPN1_DCW, OPN1_DCH );
|
|
23 m_lookWindow3->SetDefaultParams( 3, OPN2_W, OPN2_H, OPN2_DCW, OPN2_DCH );
|
|
24 m_lookWindow3->AddMask();
|
|
25
|
1
|
26 UpdateCanvas();
|
|
27
|
|
28 m_listViewThumb->SetDirectory( dir );
|
|
29
|
|
30 UpdateThumbnail();
|
0
|
31 }
|
|
32
|
|
33 MainFrame::~MainFrame()
|
|
34 {
|
|
35 }
|
|
36
|
|
37 // Event Table
|
|
38 BEGIN_EVENT_TABLE( MainFrame, wxFrame )
|
|
39 /*
|
|
40 EVT_CHOICE( ID_CHOICE, MoverFrame::OnChoice )
|
|
41 EVT_CHECKBOX( ID_CPAPER, MoverFrame::OnPaperCheck )
|
|
42 */
|
|
43 EVT_BUTTON( ID_RST1, MainFrame::OnReset1 )
|
|
44 EVT_BUTTON( ID_RST2, MainFrame::OnReset2 )
|
|
45 EVT_BUTTON( ID_RST3, MainFrame::OnReset3 )
|
|
46 EVT_BUTTON( ID_RST4, MainFrame::OnReset4 )
|
|
47 EVT_BUTTON( ID_PRINT, MainFrame::OnPrint )
|
|
48 EVT_SPINCTRL( ID_SPNW1, MainFrame::OnSpinW1 )
|
2
|
49
|
|
50 EVT_BUTTON( ID_MKDIR, MainFrame::OnMakeDir )
|
|
51 EVT_BUTTON( ID_FMOVE, MainFrame::OnFilingMove )
|
|
52
|
1
|
53 EVT_TEXT( ID_HNO, MainFrame::OnHno )
|
|
54 EVT_TEXT_ENTER( ID_HNO, MainFrame::OnHno )
|
2
|
55 EVT_BUTTON( ID_PRINT, MainFrame::OnPrint )
|
|
56
|
|
57 EVT_BUTTON( ID_MOVE, MainFrame::OnMove )
|
|
58
|
0
|
59 EVT_CLOSE( MainFrame::OnClose )
|
|
60 /*
|
|
61 EVT_LIST_ITEM_SELECTED( ID_THUMB, MoverFrame::OnThumbItemSelected )
|
|
62 EVT_LIST_ITEM_DESELECTED( ID_THUMB, MoverFrame::OnThumbItemDeselected )
|
|
63 EVT_LIST_ITEM_ACTIVATED( ID_THUMB, MoverFrame::OnThumbItemDClicked )
|
|
64 EVT_DATAVIEW_ITEM_ACTIVATED( ID_RESERVE, MoverFrame::OnListItemDClicked )
|
|
65 EVT_BUTTON( ID_TDEL, MoverFrame::OnThumbDelete)
|
|
66 EVT_SLIDER( ID_ZOOM, MoverFrame::OnZoom )
|
|
67 EVT_TIMER( ID_TIMER, MoverFrame::OnTimer )
|
|
68 EVT_IDLE( MoverFrame::OnIdle )
|
|
69 EVT_CHAR_HOOK( MoverFrame::OnKeyDown )
|
|
70 */
|
|
71 END_EVENT_TABLE()
|
|
72
|
|
73 /* Event Handlers & Functions */
|
|
74 // Event Handlers
|
|
75 void MainFrame::OnReset1( wxCommandEvent& WXUNUSED(event) )
|
|
76 {
|
|
77 m_lookWindow1->ReloadImage();
|
|
78 m_lookWindow1->ResetMask1();
|
|
79 }
|
|
80
|
|
81 void MainFrame::OnReset2( wxCommandEvent& WXUNUSED(event) )
|
|
82 {
|
|
83 m_lookWindow2->ReloadImage();
|
|
84 m_lookWindow2->ResetMask1();
|
|
85 }
|
|
86
|
|
87 void MainFrame::OnReset3( wxCommandEvent& WXUNUSED(event) )
|
|
88 {
|
|
89 m_lookWindow3->ReloadImage();
|
|
90 m_lookWindow3->ResetMask1();
|
|
91 }
|
|
92
|
|
93 void MainFrame::OnReset4( wxCommandEvent& WXUNUSED(event) )
|
|
94 {
|
|
95 m_lookWindow3->ReloadImage();
|
|
96 m_lookWindow3->ResetMask2();
|
|
97 }
|
|
98
|
2
|
99 void MainFrame::OnMakeDir( wxCommandEvent& WXUNUSED(event) )
|
|
100 {
|
|
101 }
|
|
102
|
|
103 void MainFrame::OnFilingMove( wxCommandEvent& WXUNUSED(event) )
|
|
104 {
|
|
105 }
|
|
106
|
|
107 void MainFrame::OnMove( wxCommandEvent& WXUNUSED(event) )
|
|
108 {
|
|
109 }
|
|
110
|
0
|
111 void MainFrame::OnPrint( wxCommandEvent& WXUNUSED(event) )
|
|
112 {
|
|
113 wxArrayString files = m_filelist->GetFiles();
|
|
114 if ( files.GetCount() < 6 ) {
|
|
115 MsgBox( "(^^;" );
|
|
116 return;
|
|
117 }
|
|
118
|
|
119 wxString file1 = files[5];
|
|
120 wxString file2 = files[2];
|
|
121 wxString file3 = files[3];
|
|
122 wxString file4 = files[4];
|
|
123
|
|
124 wxString temp1 = "_Trash/01.jpg";
|
|
125 wxString temp2 = "_Trash/02.jpg";
|
|
126 wxString temp3 = "_Trash/03.jpg";
|
|
127 wxString temp4 = "_Trash/04.jpg";
|
|
128
|
|
129 // copy & mask
|
|
130 wxCopyFile( file1, temp1, true );
|
|
131 wxCopyFile( file2, temp2, true );
|
|
132 wxCopyFile( file3, temp3, true );
|
|
133 wxCopyFile( file4, temp4, true );
|
|
134
|
|
135 wxRect rect1 = m_lookWindow1->GetRealMask1Rect();
|
|
136 wxRect rect2 = m_lookWindow2->GetRealMask1Rect();
|
|
137 wxRect rect3 = m_lookWindow3->GetRealMask1Rect();
|
|
138 wxRect rect4 = m_lookWindow3->GetRealMask2Rect();
|
|
139
|
|
140 DoMask( temp2, rect1 );
|
|
141 DoMask( temp3, rect3 );
|
|
142 DoMask( temp3, rect4 );
|
|
143 DoMask( temp4, rect2 );
|
|
144
|
|
145 // make html
|
|
146 int zoom = 100;
|
|
147 wxString html, file;
|
|
148
|
|
149 html = "<html><body>\n";
|
|
150 wxString imgsz = wxString::Format( "\" width=\"%d\" height=\"%d\"", 750 * zoom / 100, 1060 * zoom / 100 );
|
|
151
|
|
152 html = html + "<img src=\"" + temp1 + imgsz + "/>\n";
|
|
153 html = html + "<img src=\"" + temp2 + imgsz + "/>\n";
|
|
154
|
|
155 html = html + "<img src=\"" + temp3 + imgsz + "/>\n";
|
|
156 html = html + "<img src=\"" + temp4 + imgsz + "/>\n";
|
|
157
|
|
158 html = html + "</body></html>";
|
|
159
|
|
160 // start printing
|
|
161 wxHtmlPrintout hpout( "Merge & Move" );
|
|
162 hpout.SetMargins( 0, 0, 0, 0, 0 );
|
|
163 wxPrintDialogData pd;
|
|
164 wxPrinter p( &pd );
|
|
165
|
|
166 hpout.SetHtmlText( html, wxEmptyString, false );
|
|
167 p.Print( NULL, &hpout, true );
|
|
168 }
|
|
169
|
|
170 void MainFrame::OnSpinW1( wxSpinEvent& WXUNUSED(event) )
|
|
171 {
|
|
172 }
|
|
173
|
1
|
174 void MainFrame::OnHno( wxCommandEvent& WXUNUSED(event) )
|
|
175 {
|
|
176 wxString no = m_textCtrlNo->GetValue();
|
|
177 m_textCtrlName->SetBackgroundColour( *wxRED );
|
|
178 m_textCtrlName->SetValue( wxT("It's not a No. style !") );
|
|
179 //if ( no.Len() == 10 ) SetHhsName( no );
|
|
180 }
|
0
|
181 /*
|
|
182 void MainFrame::OnScanner( wxCommandEvent& WXUNUSED(event) )
|
|
183 {
|
|
184 wxExecute( m_scanner );
|
|
185 }
|
|
186 */
|
|
187
|
1
|
188 void MainFrame::OnUpdate( wxCommandEvent& WXUNUSED(event) )
|
|
189 {
|
|
190 UpdateCanvas();
|
|
191 UpdateThumbnail();
|
|
192 }
|
|
193
|
0
|
194 void MainFrame::OnClose( wxCloseEvent& WXUNUSED(event) )
|
|
195 {
|
|
196 if ( !IsIconized() && !IsMaximized() ) {
|
|
197 AppConf appconf;
|
|
198 appconf.SaveRect( GetRect() );
|
|
199 }
|
1
|
200 AppConf appconf;
|
|
201 appconf.SaveWork( m_dirPicker->GetPath() );
|
0
|
202 Destroy();
|
|
203 }
|
|
204
|
|
205 // Functions
|
|
206 void MainFrame::CreateControls( void )
|
|
207 {
|
|
208 this->SetSizeHints( wxDefaultSize, wxDefaultSize );
|
|
209
|
|
210 // Menu
|
|
211 m_menubar = new wxMenuBar( 0 );
|
|
212 m_menuFile = new wxMenu();
|
|
213 m_menubar->Append( m_menuFile, wxT("File") );
|
|
214
|
|
215 this->SetMenuBar( m_menubar );
|
|
216
|
|
217 wxBoxSizer* bSizerTop = new wxBoxSizer( wxVERTICAL );
|
|
218
|
|
219 // Main
|
|
220 wxFlexGridSizer* fgSizerMain = new wxFlexGridSizer( 0, 2, 0, 0 );
|
|
221 fgSizerMain->SetFlexibleDirection( wxBOTH );
|
|
222 fgSizerMain->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
|
|
223
|
|
224 // Mask & Mearge
|
|
225 wxStaticBoxSizer* sbSizerMerge = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, wxT("Mask and Merge") ), wxHORIZONTAL );
|
|
226
|
|
227 wxGridBagSizer* gbSizerMask = new wxGridBagSizer( 0, 0 );
|
|
228 gbSizerMask->SetFlexibleDirection( wxBOTH );
|
|
229 gbSizerMask->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
|
|
230
|
|
231 m_staticTextSpl = new wxStaticText( sbSizerMerge->GetStaticBox(), wxID_ANY, wxT("Special"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
232 gbSizerMask->Add( m_staticTextSpl, wxGBPosition( 1, 0 ), wxGBSpan( 1, 1 ), wxALL|wxALIGN_RIGHT, 5 );
|
|
233
|
|
234 m_staticTextOpn1 = new wxStaticText( sbSizerMerge->GetStaticBox(), wxID_ANY, wxT("Opinion1"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
235 gbSizerMask->Add( m_staticTextOpn1, wxGBPosition( 2, 0 ), wxGBSpan( 1, 1 ), wxALL|wxALIGN_RIGHT, 5 );
|
|
236
|
|
237 m_staticTextOpn2 = new wxStaticText( sbSizerMerge->GetStaticBox(), wxID_ANY, wxT("Opinion2"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
238 gbSizerMask->Add( m_staticTextOpn2, wxGBPosition( 3, 0 ), wxGBSpan( 1, 1 ), wxALL|wxALIGN_RIGHT, 5 );
|
|
239
|
|
240 m_lookWindow1 = new LookWindow( sbSizerMerge->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxSize( SPL_DCW, SPL_DCH ), 0 );
|
|
241 gbSizerMask->Add( m_lookWindow1, wxGBPosition( 1, 1 ), wxGBSpan( 1, 1 ), wxALL|wxALIGN_TOP, 5 );
|
|
242
|
|
243 m_lookWindow2 = new LookWindow( sbSizerMerge->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxSize( OPN1_DCW, OPN1_DCH ), 0 );
|
|
244 gbSizerMask->Add( m_lookWindow2, wxGBPosition( 2, 1 ), wxGBSpan( 1, 1 ), wxALL|wxALIGN_TOP, 5 );
|
|
245
|
|
246 m_lookWindow3 = new LookWindow( sbSizerMerge->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxSize( OPN2_DCW, OPN2_DCH ), 0 );
|
|
247 gbSizerMask->Add( m_lookWindow3, wxGBPosition( 3, 1 ), wxGBSpan( 3, 1 ), wxALL|wxALIGN_TOP, 5 );
|
|
248
|
|
249 m_staticTextX = new wxStaticText( sbSizerMerge->GetStaticBox(), wxID_ANY, wxT("X"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
250 gbSizerMask->Add( m_staticTextX, wxGBPosition( 0, 2 ), wxGBSpan( 1, 1 ), wxALL|wxALIGN_CENTER_HORIZONTAL|wxALIGN_BOTTOM, 5 );
|
|
251
|
|
252 m_staticTextY = new wxStaticText( sbSizerMerge->GetStaticBox(), wxID_ANY, wxT("Y"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
253 gbSizerMask->Add( m_staticTextY, wxGBPosition( 0, 3 ), wxGBSpan( 1, 1 ), wxALL|wxALIGN_BOTTOM|wxALIGN_CENTER_HORIZONTAL, 5 );
|
|
254
|
|
255 m_staticTextW = new wxStaticText( sbSizerMerge->GetStaticBox(), wxID_ANY, wxT("W"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
256 gbSizerMask->Add( m_staticTextW, wxGBPosition( 0, 4 ), wxGBSpan( 1, 1 ), wxALL|wxALIGN_BOTTOM|wxALIGN_CENTER_HORIZONTAL, 5 );
|
|
257
|
|
258 m_staticTextH = new wxStaticText( sbSizerMerge->GetStaticBox(), wxID_ANY, wxT("H"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
259 gbSizerMask->Add( m_staticTextH, wxGBPosition( 0, 5 ), wxGBSpan( 1, 1 ), wxALL|wxALIGN_CENTER_HORIZONTAL|wxALIGN_BOTTOM, 5 );
|
|
260
|
|
261 m_spinCtrlX1 = new wxSpinCtrl( sbSizerMerge->GetStaticBox(), ID_SPNX1, wxEmptyString, wxDefaultPosition, wxSize( 60, -1 ), wxALIGN_CENTER_HORIZONTAL|wxSP_ARROW_KEYS, 0, 9999, 0 );
|
|
262 gbSizerMask->Add( m_spinCtrlX1, wxGBPosition( 1, 2 ), wxGBSpan( 1, 1 ), wxALL|wxALIGN_CENTER_HORIZONTAL|wxALIGN_TOP, 5 );
|
|
263
|
|
264 m_spinCtrlX2 = new wxSpinCtrl( sbSizerMerge->GetStaticBox(), ID_SPNX2, wxEmptyString, wxDefaultPosition, wxSize( 60, -1 ), wxALIGN_CENTER_HORIZONTAL|wxSP_ARROW_KEYS, 0, 9999, 0 );
|
|
265 gbSizerMask->Add( m_spinCtrlX2, wxGBPosition( 2, 2 ), wxGBSpan( 1, 1 ), wxALL|wxALIGN_CENTER_HORIZONTAL|wxALIGN_TOP, 5 );
|
|
266
|
|
267 m_spinCtrlX3 = new wxSpinCtrl( sbSizerMerge->GetStaticBox(), ID_SPNX3, wxEmptyString, wxDefaultPosition, wxSize( 60, -1 ), wxALIGN_CENTER_HORIZONTAL|wxSP_ARROW_KEYS, 0, 9999, 0 );
|
|
268 gbSizerMask->Add( m_spinCtrlX3, wxGBPosition( 3, 2 ), wxGBSpan( 1, 1 ), wxALL|wxALIGN_CENTER_HORIZONTAL|wxALIGN_TOP, 5 );
|
|
269
|
|
270 m_spinCtrlX4 = new wxSpinCtrl( sbSizerMerge->GetStaticBox(), ID_SPNX4, wxEmptyString, wxDefaultPosition, wxSize( 60, -1 ), wxALIGN_CENTER_HORIZONTAL|wxSP_ARROW_KEYS, 0, 9999, 0 );
|
|
271 gbSizerMask->Add( m_spinCtrlX4, wxGBPosition( 4, 2 ), wxGBSpan( 1, 1 ), wxALL|wxALIGN_CENTER_HORIZONTAL|wxALIGN_TOP, 5 );
|
|
272
|
|
273 m_spinCtrlY1 = new wxSpinCtrl( sbSizerMerge->GetStaticBox(), ID_SPNY1, wxEmptyString, wxDefaultPosition, wxSize( 60, -1 ), wxALIGN_CENTER_HORIZONTAL|wxSP_ARROW_KEYS, 0, 9999, 50 );
|
|
274 gbSizerMask->Add( m_spinCtrlY1, wxGBPosition( 1, 3 ), wxGBSpan( 1, 1 ), wxALL|wxALIGN_CENTER_HORIZONTAL|wxALIGN_TOP, 5 );
|
|
275
|
|
276 m_spinCtrlY2 = new wxSpinCtrl( sbSizerMerge->GetStaticBox(), ID_SPNY2, wxEmptyString, wxDefaultPosition, wxSize( 60, -1 ), wxALIGN_CENTER_HORIZONTAL|wxSP_ARROW_KEYS, 0, 9999, 50 );
|
|
277 gbSizerMask->Add( m_spinCtrlY2, wxGBPosition( 2, 3 ), wxGBSpan( 1, 1 ), wxALL|wxALIGN_CENTER_HORIZONTAL|wxALIGN_TOP, 5 );
|
|
278
|
|
279 m_spinCtrlY3 = new wxSpinCtrl( sbSizerMerge->GetStaticBox(), ID_SPNY3, wxEmptyString, wxDefaultPosition, wxSize( 60, -1 ), wxALIGN_CENTER_HORIZONTAL|wxSP_ARROW_KEYS, 0, 9999, 50 );
|
|
280 gbSizerMask->Add( m_spinCtrlY3, wxGBPosition( 3, 3 ), wxGBSpan( 1, 1 ), wxALL|wxALIGN_CENTER_HORIZONTAL|wxALIGN_TOP, 5 );
|
|
281
|
|
282 m_spinCtrlY4 = new wxSpinCtrl( sbSizerMerge->GetStaticBox(), ID_SPNY4, wxEmptyString, wxDefaultPosition, wxSize( 60, -1 ), wxALIGN_CENTER_HORIZONTAL|wxSP_ARROW_KEYS, 0, 9999, 50 );
|
|
283 gbSizerMask->Add( m_spinCtrlY4, wxGBPosition( 4, 3 ), wxGBSpan( 1, 1 ), wxALL|wxALIGN_CENTER_HORIZONTAL|wxALIGN_TOP, 5 );
|
|
284
|
|
285 m_spinCtrlW1 = new wxSpinCtrl( sbSizerMerge->GetStaticBox(), ID_SPNW1, wxEmptyString, wxDefaultPosition, wxSize( 60, -1 ), wxALIGN_CENTER_HORIZONTAL|wxSP_ARROW_KEYS, 0, 9999, 300 );
|
|
286 gbSizerMask->Add( m_spinCtrlW1, wxGBPosition( 1, 4 ), wxGBSpan( 1, 1 ), wxALL|wxALIGN_CENTER_HORIZONTAL|wxALIGN_TOP, 5 );
|
|
287
|
|
288 m_spinCtrlW2 = new wxSpinCtrl( sbSizerMerge->GetStaticBox(), ID_SPNW2, wxEmptyString, wxDefaultPosition, wxSize( 60, -1 ), wxALIGN_CENTER_HORIZONTAL|wxSP_ARROW_KEYS, 0, 9999, 300 );
|
|
289 gbSizerMask->Add( m_spinCtrlW2, wxGBPosition( 2, 4 ), wxGBSpan( 1, 1 ), wxALL|wxALIGN_CENTER_HORIZONTAL|wxALIGN_TOP, 5 );
|
|
290
|
|
291 m_spinCtrlW3 = new wxSpinCtrl( sbSizerMerge->GetStaticBox(), ID_SPNW3, wxEmptyString, wxDefaultPosition, wxSize( 60, -1 ), wxALIGN_CENTER_HORIZONTAL|wxSP_ARROW_KEYS, 0, 9999, 300 );
|
|
292 gbSizerMask->Add( m_spinCtrlW3, wxGBPosition( 3, 4 ), wxGBSpan( 1, 1 ), wxALL|wxALIGN_CENTER_HORIZONTAL|wxALIGN_TOP, 5 );
|
|
293
|
|
294 m_spinCtrlW4 = new wxSpinCtrl( sbSizerMerge->GetStaticBox(), ID_SPNW4, wxEmptyString, wxDefaultPosition, wxSize( 60, -1 ), wxALIGN_CENTER_HORIZONTAL|wxSP_ARROW_KEYS, 0, 9999, 300 );
|
|
295 gbSizerMask->Add( m_spinCtrlW4, wxGBPosition( 4, 4 ), wxGBSpan( 1, 1 ), wxALL|wxALIGN_CENTER_HORIZONTAL|wxALIGN_TOP, 5 );
|
|
296
|
|
297 m_spinCtrlH1 = new wxSpinCtrl( sbSizerMerge->GetStaticBox(), ID_SPNH1, wxEmptyString, wxDefaultPosition, wxSize( 60, -1 ), wxALIGN_CENTER_HORIZONTAL|wxSP_ARROW_KEYS, 0, 9999, 100 );
|
|
298 gbSizerMask->Add( m_spinCtrlH1, wxGBPosition( 1, 5 ), wxGBSpan( 1, 1 ), wxALL|wxALIGN_CENTER_HORIZONTAL|wxALIGN_TOP, 5 );
|
|
299
|
|
300 m_spinCtrlH2 = new wxSpinCtrl( sbSizerMerge->GetStaticBox(), ID_SPNH2, wxEmptyString, wxDefaultPosition, wxSize( 60, -1 ), wxALIGN_CENTER_HORIZONTAL|wxSP_ARROW_KEYS, 0, 9999, 100 );
|
|
301 gbSizerMask->Add( m_spinCtrlH2, wxGBPosition( 2, 5 ), wxGBSpan( 1, 1 ), wxALL|wxALIGN_CENTER_HORIZONTAL|wxALIGN_TOP, 5 );
|
|
302
|
|
303 m_spinCtrlH3 = new wxSpinCtrl( sbSizerMerge->GetStaticBox(), ID_SPNH3, wxEmptyString, wxDefaultPosition, wxSize( 60, -1 ), wxALIGN_CENTER_HORIZONTAL|wxSP_ARROW_KEYS, 0, 9999, 100 );
|
|
304 gbSizerMask->Add( m_spinCtrlH3, wxGBPosition( 3, 5 ), wxGBSpan( 1, 1 ), wxALL|wxALIGN_CENTER_HORIZONTAL|wxALIGN_TOP, 5 );
|
|
305
|
|
306 m_spinCtrlH4 = new wxSpinCtrl( sbSizerMerge->GetStaticBox(), ID_SPNH4, wxEmptyString, wxDefaultPosition, wxSize( 60, -1 ), wxALIGN_CENTER_HORIZONTAL|wxSP_ARROW_KEYS, 0, 9999, 100 );
|
|
307 gbSizerMask->Add( m_spinCtrlH4, wxGBPosition( 4, 5 ), wxGBSpan( 1, 1 ), wxALL|wxALIGN_CENTER_HORIZONTAL|wxALIGN_TOP, 5 );
|
|
308
|
|
309 m_buttonReset1 = new wxButton( sbSizerMerge->GetStaticBox(), ID_RST1, wxT("Reset"), wxDefaultPosition, wxSize( 60, -1 ), 0 );
|
|
310 gbSizerMask->Add( m_buttonReset1, wxGBPosition( 1, 6 ), wxGBSpan( 1, 1 ), wxALL|wxALIGN_CENTER_HORIZONTAL|wxALIGN_TOP, 5 );
|
|
311
|
|
312 m_buttonReset2 = new wxButton( sbSizerMerge->GetStaticBox(), ID_RST2, wxT("Reset"), wxDefaultPosition, wxSize( 60, -1 ), 0 );
|
|
313 gbSizerMask->Add( m_buttonReset2, wxGBPosition( 2, 6 ), wxGBSpan( 1, 1 ), wxALL|wxALIGN_CENTER_HORIZONTAL|wxALIGN_TOP, 5 );
|
|
314
|
|
315 m_buttonReset3 = new wxButton( sbSizerMerge->GetStaticBox(), ID_RST3, wxT("Reset"), wxDefaultPosition, wxSize( 60, -1 ), 0 );
|
|
316 gbSizerMask->Add( m_buttonReset3, wxGBPosition( 3, 6 ), wxGBSpan( 1, 1 ), wxALL|wxALIGN_CENTER_HORIZONTAL|wxALIGN_TOP, 5 );
|
|
317
|
|
318 m_buttonReset4 = new wxButton( sbSizerMerge->GetStaticBox(), ID_RST4, wxT("Reset"), wxDefaultPosition, wxSize( 60, -1 ), 0 );
|
|
319 gbSizerMask->Add( m_buttonReset4, wxGBPosition( 4, 6 ), wxGBSpan( 1, 1 ), wxALL|wxALIGN_CENTER_HORIZONTAL|wxALIGN_TOP, 5 );
|
|
320
|
|
321 m_buttonMerge = new wxButton( sbSizerMerge->GetStaticBox(), ID_MERGE, wxT("Merge"), wxDefaultPosition, wxSize( 60, -1 ), 0 );
|
|
322 m_buttonMerge->Enable( false );
|
|
323 gbSizerMask->Add( m_buttonMerge, wxGBPosition( 5, 5 ), wxGBSpan( 1, 1 ), wxALL|wxALIGN_CENTER_HORIZONTAL|wxALIGN_BOTTOM, 5 );
|
|
324
|
|
325 m_buttonPrint = new wxButton( sbSizerMerge->GetStaticBox(), ID_PRINT, wxT("Print"), wxDefaultPosition, wxSize( 60, -1 ), 0 );
|
|
326 gbSizerMask->Add( m_buttonPrint, wxGBPosition( 5, 6 ), wxGBSpan( 1, 1 ), wxALL|wxALIGN_CENTER_HORIZONTAL|wxALIGN_BOTTOM, 5 );
|
|
327
|
|
328 sbSizerMerge->Add( gbSizerMask, 1, wxEXPAND, 5 );
|
|
329
|
|
330 fgSizerMain->Add( sbSizerMerge, 0, wxEXPAND, 5 );
|
|
331
|
|
332 // Dir
|
|
333 wxStaticBoxSizer* sbSizerDir = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, wxT("Directory Setup") ), wxVERTICAL );
|
|
334
|
|
335 wxFlexGridSizer* fgSizerSetup = new wxFlexGridSizer( 0, 2, 0, 0 );
|
|
336 fgSizerSetup->SetFlexibleDirection( wxBOTH );
|
|
337 fgSizerSetup->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
|
|
338
|
|
339 m_staticTextDate = new wxStaticText( sbSizerDir->GetStaticBox(), wxID_ANY, wxT("Date"), wxDefaultPosition, wxDefaultSize, wxALIGN_RIGHT );
|
2
|
340 fgSizerSetup->Add( m_staticTextDate, 0, wxALL, 5 );
|
0
|
341
|
|
342 m_datePicker = new wxDatePickerCtrl( sbSizerDir->GetStaticBox(), wxID_ANY, wxDefaultDateTime, wxDefaultPosition, wxDefaultSize, wxDP_DROPDOWN|wxDP_SHOWCENTURY );
|
2
|
343 fgSizerSetup->Add( m_datePicker, 0, wxALL, 5 );
|
0
|
344
|
|
345 m_staticTextCcn = new wxStaticText( sbSizerDir->GetStaticBox(), wxID_ANY, wxT("CCN"), wxDefaultPosition, wxDefaultSize, wxALIGN_RIGHT );
|
2
|
346 fgSizerSetup->Add( m_staticTextCcn, 0, wxALL, 5 );
|
0
|
347
|
2
|
348 m_comboBox = new wxComboBox( sbSizerDir->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( 100, -1 ), 0, NULL, 0 );
|
|
349 fgSizerSetup->Add( m_comboBox, 0, wxALL, 5 );
|
0
|
350
|
|
351 m_staticTextDrive = new wxStaticText( sbSizerDir->GetStaticBox(), wxID_ANY, wxT("Drive"), wxDefaultPosition, wxDefaultSize, wxALIGN_RIGHT );
|
2
|
352 fgSizerSetup->Add( m_staticTextDrive, 0, wxALL, 5 );
|
0
|
353
|
1
|
354 wxString m_checkListChoices[] = { wxT("C:\\"), wxT("Y:\\"), wxT("Z:\\") };
|
|
355 int m_checkListNChoices = sizeof( m_checkListChoices ) / sizeof( wxString );
|
|
356 m_checkList = new wxCheckListBox( sbSizerDir->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxSize( 100, -1 ), m_checkListNChoices, m_checkListChoices, wxLB_MULTIPLE );
|
|
357 m_checkList->Check( 0, true );
|
|
358 m_checkList->Check( 1, true );
|
|
359 m_checkList->Check( 2, true );
|
|
360 fgSizerSetup->Add( m_checkList, 0, wxALL, 5 );
|
0
|
361
|
|
362 fgSizerSetup->Add( 0, 0, 1, wxEXPAND, 5 );
|
|
363
|
|
364 m_buttonMkdir = new wxButton( sbSizerDir->GetStaticBox(), ID_MKDIR, wxT("Mkdir"), wxDefaultPosition, wxDefaultSize, 0 );
|
2
|
365 fgSizerSetup->Add( m_buttonMkdir, 0, wxALL, 5 );
|
0
|
366
|
1
|
367 sbSizerDir->Add( fgSizerSetup, 1, wxEXPAND, 5 );
|
0
|
368
|
|
369 m_staticline = new wxStaticLine( sbSizerDir->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
|
|
370 sbSizerDir->Add( m_staticline, 0, wxEXPAND|wxALL, 5 );
|
|
371
|
|
372 m_checkBox = new wxCheckBox( sbSizerDir->GetStaticBox(), wxID_ANY, wxT("FilingMode"), wxDefaultPosition, wxDefaultSize, 0 );
|
1
|
373 sbSizerDir->Add( m_checkBox, 0, wxALL|wxALIGN_LEFT, 5 );
|
0
|
374
|
|
375 m_button30 = new wxButton( sbSizerDir->GetStaticBox(), wxID_ANY, wxT("MyButton"), wxDefaultPosition, wxDefaultSize, 0 );
|
2
|
376 m_button30->Enable( false );
|
0
|
377 sbSizerDir->Add( m_button30, 0, wxALL|wxALIGN_RIGHT, 5 );
|
|
378
|
|
379 m_buttonFMove = new wxButton( sbSizerDir->GetStaticBox(), ID_FMOVE, wxT("Move"), wxDefaultPosition, wxDefaultSize, 0 );
|
2
|
380 m_buttonFMove->Enable( false );
|
0
|
381 sbSizerDir->Add( m_buttonFMove, 0, wxALL|wxALIGN_RIGHT, 5 );
|
|
382
|
1
|
383 fgSizerMain->Add( sbSizerDir, 1, wxEXPAND, 5 );
|
0
|
384
|
|
385 // Move
|
|
386 wxStaticBoxSizer* sbSizerMove = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, wxT("Move") ), wxHORIZONTAL );
|
|
387
|
|
388 wxFlexGridSizer* fgSizerMove = new wxFlexGridSizer( 0, 3, 0, 0 );
|
|
389 fgSizerMove->SetFlexibleDirection( wxBOTH );
|
|
390 fgSizerMove->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
|
|
391
|
|
392 m_staticTextName = new wxStaticText( sbSizerMove->GetStaticBox(), wxID_ANY, wxT("Name"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
393 fgSizerMove->Add( m_staticTextName, 0, wxALL|wxALIGN_RIGHT, 5 );
|
|
394
|
|
395 m_bitmapName = new wxStaticBitmap( sbSizerMove->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxSize( MNAME_W, MNAME_H ), 0 );
|
|
396 fgSizerMove->Add( m_bitmapName, 0, wxALL, 5 );
|
|
397
|
|
398 m_textCtrlName = new wxTextCtrl( sbSizerMove->GetStaticBox(), wxID_ANY, wxT("Nobi Nobita"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
399 m_textCtrlName->SetBackgroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_WINDOW ) );
|
|
400 fgSizerMove->Add( m_textCtrlName, 0, wxALL|wxALIGN_BOTTOM, 5 );
|
|
401
|
1
|
402 m_staticTextNo = new wxStaticText( sbSizerMove->GetStaticBox(), ID_HNO, wxT("No"), wxDefaultPosition, wxDefaultSize, 0 );
|
0
|
403 fgSizerMove->Add( m_staticTextNo, 0, wxALL|wxALIGN_RIGHT, 5 );
|
|
404
|
|
405 m_bitmapNo = new wxStaticBitmap( sbSizerMove->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxSize( MHNO_W, MHNO_H ), 0 );
|
|
406 fgSizerMove->Add( m_bitmapNo, 0, wxALL, 5 );
|
|
407
|
|
408 m_textCtrlNo = new wxTextCtrl( sbSizerMove->GetStaticBox(), wxID_ANY, wxT("1234567890"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
409 m_textCtrlNo->SetMaxLength( 10 );
|
|
410 fgSizerMove->Add( m_textCtrlNo, 0, wxALL|wxALIGN_BOTTOM, 5 );
|
|
411
|
|
412 fgSizerMove->Add( 50, 0, 1, wxEXPAND, 5 );
|
|
413
|
|
414 m_gauge = new wxGauge( sbSizerMove->GetStaticBox(), wxID_ANY, 100, wxDefaultPosition, wxDefaultSize, wxGA_HORIZONTAL );
|
|
415 m_gauge->SetValue( 0 );
|
1
|
416 fgSizerMove->Add( m_gauge, 1, wxALL|wxEXPAND|wxALIGN_TOP, 5 );
|
0
|
417
|
|
418 m_buttonMove = new wxButton( sbSizerMove->GetStaticBox(), ID_MOVE, wxT("Move"), wxDefaultPosition, wxDefaultSize, 0 );
|
1
|
419 fgSizerMove->Add( m_buttonMove, 0, wxALL|wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL, 5 );
|
0
|
420
|
|
421 sbSizerMove->Add( fgSizerMove, 0, 0, 5 );
|
|
422
|
1
|
423 sbSizerMove->Add( 40, 0, 0, wxEXPAND, 5 );
|
|
424
|
0
|
425 m_dataViewListCtrl = new wxDataViewListCtrl( sbSizerMove->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, wxDV_MULTIPLE|wxDV_ROW_LINES|wxDV_VERT_RULES );
|
|
426 m_dataViewListColumnNo = m_dataViewListCtrl->AppendTextColumn( wxT("No"), wxDATAVIEW_CELL_INERT, 30, static_cast<wxAlignment>(wxALIGN_RIGHT) , wxDATAVIEW_COL_RESIZABLE );
|
|
427 m_dataViewListColumnHno = m_dataViewListCtrl->AppendTextColumn( wxT("Hno"), wxDATAVIEW_CELL_INERT, 80, static_cast<wxAlignment>(wxALIGN_CENTER), wxDATAVIEW_COL_RESIZABLE|wxDATAVIEW_COL_SORTABLE );
|
|
428 m_dataViewListColumnName = m_dataViewListCtrl->AppendTextColumn( wxT("Name"), wxDATAVIEW_CELL_INERT, 80, static_cast<wxAlignment>(wxALIGN_LEFT), wxDATAVIEW_COL_RESIZABLE|wxDATAVIEW_COL_SORTABLE );
|
|
429 m_dataViewListColumnN = m_dataViewListCtrl->AppendTextColumn( wxT("N"), wxDATAVIEW_CELL_INERT, 40, static_cast<wxAlignment>(wxALIGN_CENTER), wxDATAVIEW_COL_RESIZABLE );
|
2
|
430 m_dataViewListColumnDrv1 = m_dataViewListCtrl->AppendTextColumn( wxT("C:\\"), wxDATAVIEW_CELL_INERT, 30, static_cast<wxAlignment>(wxALIGN_CENTER), wxDATAVIEW_COL_RESIZABLE );
|
|
431 m_dataViewListColumnDrv2 = m_dataViewListCtrl->AppendTextColumn( wxT("Y:\\"), wxDATAVIEW_CELL_INERT, 30, static_cast<wxAlignment>(wxALIGN_CENTER), wxDATAVIEW_COL_RESIZABLE );
|
|
432 m_dataViewListColumnDrv3 = m_dataViewListCtrl->AppendTextColumn( wxT("Z:\\"), wxDATAVIEW_CELL_INERT, 30, static_cast<wxAlignment>(wxALIGN_CENTER), wxDATAVIEW_COL_RESIZABLE );
|
0
|
433 m_dataViewListColumnEtc = m_dataViewListCtrl->AppendTextColumn( wxT("Status"), wxDATAVIEW_CELL_INERT, -1, static_cast<wxAlignment>(wxALIGN_LEFT), wxDATAVIEW_COL_RESIZABLE );
|
|
434 sbSizerMove->Add( m_dataViewListCtrl, 1, wxALL|wxEXPAND, 5 );
|
|
435
|
|
436 fgSizerMain->Add( sbSizerMove, 0, wxEXPAND, 5 );
|
|
437
|
|
438 wxStaticBoxSizer* sbSizerManip;
|
|
439 sbSizerManip = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, wxT("Manip") ), wxVERTICAL );
|
|
440
|
|
441 m_buttonWork = new wxButton( sbSizerManip->GetStaticBox(), ID_WORK, wxT("WorkDir"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
442 sbSizerManip->Add( m_buttonWork, 0, wxALL|wxALIGN_CENTER_HORIZONTAL, 5 );
|
|
443
|
|
444 m_buttonScan = new wxButton( sbSizerManip->GetStaticBox(), ID_SCAN, wxT("Scanner"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
445 sbSizerManip->Add( m_buttonScan, 0, wxALL|wxALIGN_CENTER_HORIZONTAL, 5 );
|
|
446
|
|
447 fgSizerMain->Add( sbSizerManip, 1, wxEXPAND, 5 );
|
|
448
|
|
449 bSizerTop->Add( fgSizerMain, 1, wxEXPAND, 5 );
|
|
450
|
|
451 // Work
|
|
452 wxStaticBoxSizer* sbSizerWork = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, wxT("Work") ), wxVERTICAL );
|
|
453
|
|
454 wxBoxSizer* bSizerWork = new wxBoxSizer( wxHORIZONTAL );
|
|
455
|
|
456 m_staticTextWork = new wxStaticText( sbSizerWork->GetStaticBox(), wxID_ANY, wxT("Folder"), wxDefaultPosition, wxDefaultSize, wxALIGN_RIGHT );
|
|
457 bSizerWork->Add( m_staticTextWork, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
|
|
458
|
|
459 m_dirPicker = new wxDirPickerCtrl( sbSizerWork->GetStaticBox(), wxID_ANY, wxEmptyString, wxT("Select a folder"), wxDefaultPosition, wxDefaultSize, wxDIRP_CHANGE_DIR|wxDIRP_DIR_MUST_EXIST|wxDIRP_SMALL|wxDIRP_USE_TEXTCTRL );
|
|
460 bSizerWork->Add( m_dirPicker, 1, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
|
|
461
|
|
462 m_buttonSelectAll = new wxButton( sbSizerWork->GetStaticBox(), ID_SELALL, wxT("Select All"), wxDefaultPosition, wxSize( 60, -1 ), 0 );
|
|
463 bSizerWork->Add( m_buttonSelectAll, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
|
|
464
|
|
465 m_buttonDel = new wxButton( sbSizerWork->GetStaticBox(), ID_SELDEL, wxT("Delete"), wxDefaultPosition, wxSize( 60, -1 ), 0 );
|
|
466 bSizerWork->Add( m_buttonDel, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
|
|
467
|
|
468 m_slider = new wxSlider( sbSizerWork->GetStaticBox(), ID_SLDR, 50, 0, 100, wxDefaultPosition, wxDefaultSize, wxSL_HORIZONTAL );
|
|
469 bSizerWork->Add( m_slider, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
|
|
470
|
|
471 m_buttonUpdate = new wxButton( sbSizerWork->GetStaticBox(), ID_UPDT, wxT("Refresh"), wxDefaultPosition, wxSize( 60,-1 ), 0 );
|
|
472 bSizerWork->Add( m_buttonUpdate, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
|
|
473
|
1
|
474 sbSizerWork->Add( bSizerWork, 0, wxEXPAND, 5 );
|
0
|
475
|
1
|
476 m_listViewThumb = new ListThumbnail( sbSizerWork->GetStaticBox(), ID_THUMB, wxDefaultPosition, wxDefaultSize, wxLC_ICON );
|
|
477 //m_listViewThumb->SetBackgroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_INFOBK ) );
|
|
478 sbSizerWork->Add( m_listViewThumb, 1, wxALL|wxEXPAND, 5 );
|
0
|
479
|
|
480 bSizerTop->Add( sbSizerWork, 1, wxEXPAND, 5 );
|
|
481
|
|
482 // Log
|
|
483 m_collapsiblePane = new wxCollapsiblePane( this, wxID_ANY, wxT("Message"), wxDefaultPosition, wxDefaultSize, wxCP_DEFAULT_STYLE );
|
|
484 m_collapsiblePane->Collapse( false );
|
|
485
|
|
486 wxBoxSizer* bSizerMsg = new wxBoxSizer( wxVERTICAL );
|
|
487
|
|
488 m_textCtrlMsg = new wxTextCtrl( m_collapsiblePane->GetPane(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
|
489 bSizerMsg->Add( m_textCtrlMsg, 1, wxALL|wxEXPAND, 5 );
|
|
490
|
|
491 m_collapsiblePane->GetPane()->SetSizer( bSizerMsg );
|
|
492 m_collapsiblePane->GetPane()->Layout();
|
|
493 bSizerMsg->Fit( m_collapsiblePane->GetPane() );
|
|
494
|
|
495 bSizerTop->Add( m_collapsiblePane, 1, wxEXPAND|wxALL, 5 );
|
|
496
|
|
497 this->SetSizer( bSizerTop );
|
|
498 this->Layout();
|
|
499
|
|
500 this->Centre( wxBOTH );
|
|
501 }
|
|
502
|
1
|
503 void MainFrame::UpdateCanvas( void )
|
0
|
504 {
|
|
505 wxArrayString files = m_filelist->Update();
|
|
506 int n = files.GetCount();
|
|
507 if ( n < 6 ) {
|
|
508 LookMarksheet( m_testpattern );
|
|
509 m_lookWindow1->SetFile( m_testpattern );
|
|
510 m_lookWindow2->SetFile( m_testpattern );
|
|
511 m_lookWindow3->SetFile( m_testpattern );
|
|
512 } else {
|
|
513 LookMarksheet( files[0] );
|
|
514 m_lookWindow1->SetFile( files[2] );
|
|
515 m_lookWindow2->SetFile( files[4] );
|
|
516 m_lookWindow3->SetFile( files[3] );
|
|
517 }
|
|
518
|
|
519 m_lookWindow1->ResetMask1();
|
|
520 m_lookWindow2->ResetMask1();
|
|
521 m_lookWindow3->ResetMask1();
|
|
522 m_lookWindow3->ResetMask2();
|
|
523 }
|
|
524
|
1
|
525 void MainFrame::UpdateThumbnail( void )
|
|
526 {
|
|
527 m_listViewThumb->Reload();
|
|
528 }
|
|
529
|
0
|
530 void MainFrame::LookMarksheet( wxString file )
|
|
531 {
|
|
532 wxImage marksheet( file, wxBITMAP_TYPE_JPEG );
|
|
533 wxRect rect_name( 480, 1040, 1400, 380 );
|
|
534 wxRect rect_hno( 2700, 440, 1200, 200 );
|
|
535
|
|
536 // 氏名画像を表示
|
|
537 wxImage name_image = marksheet.GetSubImage( rect_name );
|
|
538 wxBitmap name_bmp = name_image.Scale( MNAME_W, MNAME_H, wxIMAGE_QUALITY_HIGH );
|
|
539 m_bitmapName->SetBitmap( name_bmp );
|
|
540
|
|
541 // 被保険者番号画像を表示
|
|
542 wxImage hhsno_image = marksheet.GetSubImage( rect_hno );
|
|
543 wxBitmap hhsno_bmp = hhsno_image.Scale( MHNO_W, MHNO_H, wxIMAGE_QUALITY_HIGH );
|
|
544 m_bitmapNo->SetBitmap( hhsno_bmp );
|
|
545
|
|
546 /*
|
|
547 // 推測
|
1
|
548 wxString no = GuessHhs( file, rect_mhno );
|
|
549 m_textCtrlNo->SetValue( no );
|
|
550 SetHhsName( no );
|
0
|
551 */
|
|
552 }
|
|
553
|
|
554 void MainFrame::DoMask( wxString file, wxRect rect )
|
|
555 {
|
|
556 wxImage img_org( file, wxBITMAP_TYPE_JPEG );
|
|
557 //img_org.SetRGB( rect, 255, 255, 255 );
|
|
558 img_org.SetRGB( rect, 0, 255, 0 );
|
|
559 img_org.SaveFile( file );
|
|
560 }
|
|
561
|