diff options
| author | Loic Guegan <manzerbredes@mailbox.org> | 2022-02-24 21:10:29 +0100 |
|---|---|---|
| committer | Loic Guegan <manzerbredes@mailbox.org> | 2022-02-24 21:10:29 +0100 |
| commit | 9b2ebc19a6c4070bc5bcf33e905471cf7c80dd72 (patch) | |
| tree | adb77ffa0416b88fa7014b9ecc3d945e4aa4f9a4 /src/MainWindow.cpp | |
| parent | 8e4a89ea7330f01b7df0040276b82006c6c8fdd7 (diff) | |
Debug pgn loader
Diffstat (limited to 'src/MainWindow.cpp')
| -rw-r--r-- | src/MainWindow.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp index 5dbbf28..e831d89 100644 --- a/src/MainWindow.cpp +++ b/src/MainWindow.cpp @@ -27,9 +27,9 @@ MainWindow::MainWindow() menuGame = new wxMenu; menuGame->Append(2, "New", "Create new game"); - Bind(wxEVT_MENU, &MainWindow::OnNewGame, this, 2); + Bind(wxEVT_MENU, &MainWindow::OnMenuNewGame, this, 2); menuGame->Append(3, "New from FEN", "Create new game using FEN"); - Bind(wxEVT_MENU, &MainWindow::OnNewGame, this, 3); + Bind(wxEVT_MENU, &MainWindow::OnMenuNewGame, this, 3); menuGame->AppendSeparator(); menuGame->Append(10, "Save", "Save current game"); menuGame->Append(11, "Save As", "Save current game as"); @@ -53,7 +53,7 @@ MainWindow::MainWindow() Bind(wxEVT_AUINOTEBOOK_PAGE_CHANGED, &MainWindow::OnPageChange, this, wxID_ANY); Bind(REFRESH_TAB_TITLE, &MainWindow::OnRefreshTabTitle, this, wxID_ANY); - Bind(NEW_GAME_EVENT, &MainWindow::OnNewGame2, this, wxID_ANY); + Bind(NEW_GAME_EVENT, &MainWindow::OnNewGame, this, wxID_ANY); Bind(wxEVT_CLOSE_WINDOW, &MainWindow::OnClose, this); } @@ -128,7 +128,7 @@ void MainWindow::OnOpen(wxCommandEvent &event) { } } -void MainWindow::OnNewGame(wxCommandEvent &event) { +void MainWindow::OnMenuNewGame(wxCommandEvent &event) { if (event.GetId() == 3) { wxTextEntryDialog *dial = new wxTextEntryDialog(NULL, wxT("Enter FEN:"), wxT("Error")); @@ -144,7 +144,7 @@ void MainWindow::OnNewGame(wxCommandEvent &event) { } } -void MainWindow::OnNewGame2(wxCommandEvent &event) { +void MainWindow::OnNewGame(wxCommandEvent &event) { Game *g=(Game*)event.GetClientData(); NewGame(g); } |
