diff options
Diffstat (limited to 'src/ochess.cpp')
| -rw-r--r-- | src/ochess.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/ochess.cpp b/src/ochess.cpp index 82d88be..74ffc88 100644 --- a/src/ochess.cpp +++ b/src/ochess.cpp @@ -8,6 +8,16 @@ bool MyApp::OnInit() { frame->Show(true); return true; } + +std::vector<TabInfos *> MyApp::ListTabInfos() { + std::vector<TabInfos *> tinfos; + wxAuiNotebook *notebook=((MainWindow *)this->GetTopWindow())->notebook; + for (int i = 0; i < notebook->GetPageCount(); i++) { + tinfos.push_back(dynamic_cast<TabInfos *>(notebook->GetPage(i))); + } + return (tinfos); +} + wxIMPLEMENT_APP(MyApp); void Abort(std::string msg) { |
