| 1230 | } |
| 1231 | |
| 1232 | bool MainWindow::SwitchToCaseWindow( const wxString &case_name ) |
| 1233 | { |
| 1234 | if ( Case *c = m_project.GetCase( case_name ) ) |
| 1235 | { |
| 1236 | int sel = m_caseNotebook->FindPage( GetCaseWindow( c ) ); |
| 1237 | if ( sel >= 0 ) m_caseNotebook->SetSelection( sel ); |
| 1238 | |
| 1239 | // update tab list too if needed |
| 1240 | if ( m_caseTabList->GetStringSelection() != case_name ) |
| 1241 | { |
| 1242 | int idx = m_caseTabList->Find( case_name ); |
| 1243 | if ( idx >= 0 ) |
| 1244 | { |
| 1245 | m_caseTabList->SetSelection( idx ); |
| 1246 | m_caseTabList->Refresh(); |
| 1247 | } |
| 1248 | } |
| 1249 | |
| 1250 | UpdateAllPageNotes(); |
| 1251 | |
| 1252 | return true; |
| 1253 | } |
| 1254 | else return false; |
| 1255 | } |
| 1256 | |
| 1257 | void MainWindow::UpdateAllPageNotes() |
| 1258 | { |
no test coverage detected