aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/MainWindow.cpp10
-rw-r--r--src/MainWindow.hpp2
2 files changed, 6 insertions, 6 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);
}
diff --git a/src/MainWindow.hpp b/src/MainWindow.hpp
index e827df3..0faa556 100644
--- a/src/MainWindow.hpp
+++ b/src/MainWindow.hpp
@@ -17,8 +17,8 @@ class MainWindow : public wxFrame {
void OnExit(wxCommandEvent &event);
void OnClose(wxCloseEvent &e);
+ void OnMenuNewGame(wxCommandEvent &event);
void OnNewGame(wxCommandEvent &event);
- void OnNewGame2(wxCommandEvent &event);
void OnOpen(wxCommandEvent &event);
void OnPageChange(wxAuiNotebookEvent &event);
void OnRefreshTabTitle(wxCommandEvent &event);