diff options
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); } |
