mirror of
https://gitlab.com/manzerbredes/ochess.git
synced 2025-04-19 04:09:41 +00:00
Debug pgn loader
This commit is contained in:
parent
8e4a89ea73
commit
9b2ebc19a6
3 changed files with 7 additions and 7 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue