MCPcopy Create free account
hub / github.com/NatLabRockies/SAM / SwitchToCaseWindow

Method SwitchToCaseWindow

src/main.cpp:1232–1255  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1230}
1231
1232bool 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
1257void MainWindow::UpdateAllPageNotes()
1258{

Callers 2

OnEvtMethod · 0.80
fcall_active_caseFunction · 0.80

Calls 4

SetSelectionMethod · 0.80
GetStringSelectionMethod · 0.80
GetCaseMethod · 0.45
FindMethod · 0.45

Tested by

no test coverage detected