diff options
| author | Loic Guegan <manzerbredes@mailbox.org> | 2022-12-25 11:13:05 +0100 |
|---|---|---|
| committer | Loic Guegan <manzerbredes@mailbox.org> | 2022-12-25 11:13:05 +0100 |
| commit | 4ffba108e367926f1c254bb1e2f07b6dbace4f32 (patch) | |
| tree | dbd0cb1795622da335035895c1a03c30ed037eeb /src/ochess.cpp | |
| parent | 1293b59ed55423671dc204d3cb09822c9c599e55 (diff) | |
Update the db import game feature
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) { |
