mirror of
https://gitlab.com/manzerbredes/ochess.git
synced 2025-07-15 08:07:40 +00:00
Update the db import game feature
This commit is contained in:
parent
1293b59ed5
commit
4ffba108e3
10 changed files with 47 additions and 41 deletions
|
@ -5,7 +5,7 @@
|
|||
AppendGameDialog::AppendGameDialog(wxWindow *parent, std::shared_ptr<GameBase> base)
|
||||
: DialogAppendGame(parent), base(base) {
|
||||
|
||||
for (TabInfos *i : MAINWIN->ListTabInfos()) {
|
||||
for (TabInfos *i : wxGetApp().ListTabInfos()) {
|
||||
if (i->type == TabInfos::GAME || i->type == TabInfos::BASE) {
|
||||
wxWindow *win = dynamic_cast<wxWindow *>(i);
|
||||
game_list->Append(win->GetLabel());
|
||||
|
|
|
@ -1,8 +1,13 @@
|
|||
#include "BaseImportTab.hpp"
|
||||
|
||||
|
||||
BaseImportTab::BaseImportTab(wxFrame *parent):
|
||||
TabBase_TabImport(parent)
|
||||
{
|
||||
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
#include "ochess.hpp"
|
||||
|
||||
|
||||
|
||||
class BaseImportTab : public TabBase_TabImport {
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue