diff options
Diffstat (limited to 'src/ochess.cpp')
| -rw-r--r-- | src/ochess.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/ochess.cpp b/src/ochess.cpp index 5ef3522..62a5c04 100644 --- a/src/ochess.cpp +++ b/src/ochess.cpp @@ -51,6 +51,14 @@ std::vector<TabInfos *> MyApp::ListTabInfos() { return (tinfos); } +void MyApp::FocusOnTab(TabInfos * toFocus){ + wxAuiNotebook *notebook = ((MainWindow *)this->GetTopWindow())->notebook; + for (int i = 0; i < notebook->GetPageCount(); i++) { + if(dynamic_cast<TabInfos *>(notebook->GetPage(i))->id== toFocus->id) + notebook->SetSelection(i); + } +} + Openings &MyApp::GetBook() { return Book; } void MyApp::NewGame(TabInfos *tabsrc, std::shared_ptr<Game> g) { |
