Improve game import

This commit is contained in:
Loic Guegan 2022-12-27 15:58:16 +01:00
parent f40fd3e7a4
commit c97e151e1b
14 changed files with 47 additions and 106 deletions

View file

@ -60,11 +60,11 @@ MainWindow::MainWindow()
NewGame(std::shared_ptr<Game>(new Game()));
// Temporary TO REMOVE JUST FOR TESTS:
/*BaseTab *bt = new BaseTab((wxFrame *)notebook, "/home/loic/jean.pgn");
BaseTab *bt = new BaseTab((wxFrame *)notebook, "/home/loic/pgn/Milov.pgn");
this->AddPage(bt,bt);
bt = new BaseTab((wxFrame *)notebook, "/home/loic/pgn/Milov.pgn");
this->AddPage(bt,bt);*/
bt = new BaseTab((wxFrame *)notebook, "/home/loic/jean.pgn");
this->AddPage(bt,bt);
}
void MainWindow::AddPage(wxWindow* window, TabInfos* infos){