| 1218 | } |
| 1219 | |
| 1220 | CaseWindow *MainWindow::GetCaseWindow( Case *c ) |
| 1221 | { |
| 1222 | if ( !c ) return 0; |
| 1223 | |
| 1224 | for( size_t i=0;i<m_caseNotebook->GetPageCount();i++ ) |
| 1225 | if ( CaseWindow *cw = dynamic_cast<CaseWindow*>(m_caseNotebook->GetPage( i ) ) ) |
| 1226 | if ( cw->GetCase() == c ) |
| 1227 | return cw; |
| 1228 | |
| 1229 | return 0; |
| 1230 | } |
| 1231 | |
| 1232 | bool MainWindow::SwitchToCaseWindow( const wxString &case_name ) |
| 1233 | { |
no test coverage detected