ochess/src/base_tab/BaseImportTab.cpp

14 lines
377 B
C++
Raw Normal View History

2022-12-23 16:49:33 +01:00
#include "BaseImportTab.hpp"
BaseImportTab::BaseImportTab(wxFrame *parent):
TabBase_TabImport(parent)
{
2022-12-25 11:13:05 +01:00
for (TabInfos *i : wxGetApp().ListTabInfos()) {
if (i->type == TabInfos::GAME || i->type == TabInfos::BASE) {
wxWindow *win = dynamic_cast<wxWindow *>(i);
opened_game_list->Append(win->GetLabel(),i);
opened_game_list->SetSelection(0);
}
}
2022-12-23 16:49:33 +01:00
}