Mercurial > mercurial > hgweb_searcher2.cgi
comparison src/myframe.cpp @ 8:db7bd315e52c
editing mark-sheet image.
author | pyon@macmini |
---|---|
date | Tue, 21 Jun 2011 21:16:31 +0900 |
parents | 75fefb53d983 |
children | 24e0775af32e |
comparison
equal
deleted
inserted
replaced
7:c6099901f666 | 8:db7bd315e52c |
---|---|
1 // Filename : mainframe.cpp | 1 // Filename : mainframe.cpp |
2 // Last Change: 09-Apr-2011. | 2 // Last Change: 21-Jun-2011. |
3 // | 3 // |
4 | 4 |
5 #include "symbol.h" | 5 #include "symbol.h" |
6 #include "common.h" | 6 #include "common.h" |
7 #include "myframe.h" | 7 #include "myframe.h" |
159 wxSplitterWindow *s = (wxSplitterWindow*)FindWindowById( ID_SPLT ); | 159 wxSplitterWindow *s = (wxSplitterWindow*)FindWindowById( ID_SPLT ); |
160 s->ReplaceWindow( h, g ); | 160 s->ReplaceWindow( h, g ); |
161 h->Show(true); | 161 h->Show(true); |
162 g->Show(false); | 162 g->Show(false); |
163 | 163 |
164 wxRegEx reHhs(wxT("^0[1238][0-9]{8}$")); // 被保番チェック | 164 wxRegEx reHhs(wxT("^0[1238][0-9]{8}$")); // 1:被保番チェック |
165 wxRegEx reCno(wxT("^[0-9]{1,2}$")); // 開くフォルダの番号 | 165 wxRegEx reCno(wxT("^[0-9]{1,2}$")); // 2:開くフォルダの番号 |
166 wxRegEx rePrint(wxT("^.[0-9]{1,2}$")); // 3:印刷するフォルダの番号 | |
166 | 167 |
167 wxString cmd; | 168 wxString cmd; |
168 cmd = this->GetLineText(0); | 169 cmd = this->GetLineText(0); |
169 int cond = 0; | 170 int cond = 0; |
170 if ( reHhs.Matches( cmd ) ) | 171 if ( reHhs.Matches( cmd ) ) |
171 cond = 1; | 172 cond = 1; |
172 else if ( reCno.Matches( cmd ) ) | 173 else if ( reCno.Matches( cmd ) ) |
173 cond = 2; | 174 cond = 2; |
175 else if ( rePrint.Matches( cmd ) ) | |
176 cond = 3; | |
174 | 177 |
175 wxString htmlbody; | 178 wxString htmlbody; |
176 | 179 |
177 MyFrame *mf = (MyFrame*)FindWindowById( ID_MAIN ); | 180 MyFrame *mf = (MyFrame*)FindWindowById( ID_MAIN ); |
178 wxHtmlWindow *hr = (wxHtmlWindow*)FindWindowById( ID_HTML ); | 181 wxHtmlWindow *hr = (wxHtmlWindow*)FindWindowById( ID_HTML ); |
289 wxString log = now.Format() + wxT(" " ) + cmd + wxT(" ") + path[val]; | 292 wxString log = now.Format() + wxT(" " ) + cmd + wxT(" ") + path[val]; |
290 logFile.AddLine( log ); | 293 logFile.AddLine( log ); |
291 logFile.Write(); | 294 logFile.Write(); |
292 logFile.Close(); | 295 logFile.Close(); |
293 | 296 |
297 break; | |
298 } | |
299 // ファイル印刷 | |
300 case 3: { | |
294 break; | 301 break; |
295 } | 302 } |
296 // 制御用コマンド | 303 // 制御用コマンド |
297 case 0: { | 304 case 0: { |
298 | 305 |