#include "AppendGameDialog.hpp" #include "MainWindow.hpp" #include "ochess.hpp" AppendGameDialog::AppendGameDialog(wxWindow *parent, GameBase *base) : AppendGameDialogBF(parent), base(base) { tinfos = MAINWIN->ListTabInfos(); for (TabInfos *i : tinfos) { wxWindow *win = dynamic_cast(i); game_list->Append(win->GetLabel()); } Bind(wxEVT_BUTTON, &AppendGameDialog::OnCancel, this, ID_DIALOG_CANCEL_BUTTON); Bind(wxEVT_BUTTON, &AppendGameDialog::OnImport, this, ID_DIALOG_IMPORT_BUTTON); } void AppendGameDialog::OnCancel(wxCommandEvent &event) { this->Close(); } void AppendGameDialog::OnImport(wxCommandEvent &event) { std::vector to_ignore; std::vector new_games_bases; std::vector new_games; this->Close(); }