mirror of
https://gitlab.com/manzerbredes/ochess.git
synced 2025-07-13 15:27:38 +00:00
22 lines
667 B
C++
22 lines
667 B
C++
#include "BaseImportTab.hpp"
|
|
|
|
BaseImportTab::BaseImportTab(wxFrame *parent, TabInfos *main_tab):
|
|
TabBase_TabImport(parent), main_tab(main_tab)
|
|
{
|
|
RefreshImportLists();
|
|
}
|
|
|
|
void BaseImportTab::RefreshImportLists(){
|
|
for (TabInfos *i : wxGetApp().ListTabInfos()) {
|
|
if (i->type == TabInfos::GAME) {
|
|
wxWindow *win = dynamic_cast<wxWindow *>(i);
|
|
opened_game_list->Append(win->GetLabel(),i);
|
|
opened_game_list->SetSelection(0);
|
|
}
|
|
else if (i->type == TabInfos::BASE && i->id != main_tab->id) {
|
|
wxWindow *win = dynamic_cast<wxWindow *>(i);
|
|
opened_db_list->Append(win->GetLabel(),i);
|
|
opened_db_list->SetSelection(0);
|
|
}
|
|
}
|
|
}
|