From 4ffba108e367926f1c254bb1e2f07b6dbace4f32 Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Sun, 25 Dec 2022 11:13:05 +0100 Subject: Update the db import game feature --- src/ochess.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/ochess.cpp') 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 MyApp::ListTabInfos() { + std::vector tinfos; + wxAuiNotebook *notebook=((MainWindow *)this->GetTopWindow())->notebook; + for (int i = 0; i < notebook->GetPageCount(); i++) { + tinfos.push_back(dynamic_cast(notebook->GetPage(i))); + } + return (tinfos); +} + wxIMPLEMENT_APP(MyApp); void Abort(std::string msg) { -- cgit v1.2.3