comparison src/myframe.cpp @ 18:a8e6e5769e3b

Small fixes.
author pyon@macmini
date Sat, 29 Nov 2014 11:02:35 +0900
parents acb59fbbe5ee
children 3bb803d8c1d7
comparison
equal deleted inserted replaced
17:acb59fbbe5ee 18:a8e6e5769e3b
1 // Filename : myframe.cpp 1 // Filename : myframe.cpp
2 // Last Change: 28-Jul-2014. 2 // Last Change: 21-Nov-2014.
3 // 3 //
4 #include "main.h" 4 #include "main.h"
5 #include "db.h" 5 #include "db.h"
6 #include "about.h" 6 #include "about.h"
7 #include "kana.h" 7 #include "kana.h"
542 } 542 }
543 else { 543 else {
544 wxCopyFile( file, tmpjpg, true ); 544 wxCopyFile( file, tmpjpg, true );
545 } 545 }
546 html = html + wxT("<img src=\"") + tmpjpg + wxT("\" width=\"750\" height=\"1060\"/>"); 546 html = html + wxT("<img src=\"") + tmpjpg + wxT("\" width=\"750\" height=\"1060\"/>");
547 html = html + wxT("<div align=right><font size=-2><u>") + hhsno + wxT("</u></font></div>");
547 cout = dir.GetNext( &file ); 548 cout = dir.GetNext( &file );
548 n++; 549 n++;
549 } 550 }
550 html = html + wxT("</body></html>"); 551 html = html + wxT("</body></html>");
551 552
743 s = data.GetText(); 744 s = data.GetText();
744 } 745 }
745 wxTheClipboard->Close(); 746 wxTheClipboard->Close();
746 } 747 }
747 748
749 s.Replace( wxT(" "), wxT(""), true );
748 wxRegEx reHhs( wxT("^0[1238][0-9]{8}$") ); 750 wxRegEx reHhs( wxT("^0[1238][0-9]{8}$") );
749 if ( reHhs.Matches( s ) ) { 751 if ( reHhs.Matches( s ) ) {
750 m_hhsno = s; 752 m_hhsno = s;
751 UpdateList( m_hhsno ); 753 UpdateList( m_hhsno );
752 UpdateThumbmail( 0 ); 754 UpdateThumbmail( 0 );