Mercurial > mercurial > hgweb_mover.cgi
comparison src/myframe.cpp @ 7:bfa0800f1176
fix text-color
author | pyon@macmini |
---|---|
date | Sat, 08 Oct 2011 19:49:13 +0900 |
parents | 99d612849255 |
children | b59dfcc84d7a |
comparison
equal
deleted
inserted
replaced
6:99d612849255 | 7:bfa0800f1176 |
---|---|
294 hhs = GuessHhs( from ); | 294 hhs = GuessHhs( from ); |
295 wxString d = dirname + hhs; | 295 wxString d = dirname + hhs; |
296 wxMkdir( d ); | 296 wxMkdir( d ); |
297 m_listCtrl->InsertItem( r, wxString::Format(wxT("%d"),r+1) ); | 297 m_listCtrl->InsertItem( r, wxString::Format(wxT("%d"),r+1) ); |
298 m_listCtrl->SetItem( r, 1, hhs, -1 ); // 被保険者番号 | 298 m_listCtrl->SetItem( r, 1, hhs, -1 ); // 被保険者番号 |
299 m_listCtrl->SetItem( r-1, 2, wxString::Format(wxT("%d"),cnt), -1 ); // ファイル数 | |
300 if ( r % 2 ) m_listCtrl->SetItemBackgroundColour( r, wxColour(wxT("WHEAT")) ); | 299 if ( r % 2 ) m_listCtrl->SetItemBackgroundColour( r, wxColour(wxT("WHEAT")) ); |
301 r++; | 300 r++; |
302 cnt=0; | 301 cnt=1; |
303 } | 302 } |
304 if ( hhs.IsEmpty() ) { | 303 if ( hhs.IsEmpty() ) { |
305 wxMessageBox(wxT("マークシートの画像ファイルを確認してください.")); | 304 wxMessageBox(wxT("1枚目のマークシートの画像ファイルを確認してください.")); |
306 return; | 305 return; |
307 } | 306 } |
308 wxString to = dirname + wxFILE_SEP_PATH + hhs + wxFILE_SEP_PATH + filename; | 307 wxString to = dirname + wxFILE_SEP_PATH + hhs + wxFILE_SEP_PATH + filename; |
309 wxRenameFile( from, to, false ); | 308 wxRenameFile( from, to, false ); |
309 m_listCtrl->SetItem( r-1, 2, wxString::Format(wxT("%d"),cnt), -1 ); // ファイル数 | |
310 if ( cnt < 5 ) m_listCtrl->SetItemTextColour( r, *wxRED ); | |
311 if ( cnt > 5 ) m_listCtrl->SetItemTextColour( r, *wxBLUE ); | |
312 cnt++; | |
310 // write log | 313 // write log |
311 cout = dir.GetNext( &filename ); | 314 cout = dir.GetNext( &filename ); |
312 cnt++; | 315 } |
313 } | |
314 m_listCtrl->SetItem( r-1, 2, wxString::Format(wxT("%d"),cnt), -1 ); // ファイル数 | |
315 if ( cnt < 5 ) m_listCtrl->SetItemTextColour( r, *wxRED ); | |
316 if ( cnt > 5 ) m_listCtrl->SetItemTextColour( r, *wxBLUE ); | |
317 | 316 |
318 wxString cmd = wxT("explorer ") + dirname; | 317 wxString cmd = wxT("explorer ") + dirname; |
319 wxExecute( cmd ); | 318 wxExecute( cmd ); |
320 } | 319 } |
321 | 320 |