diff options
| author | Loic Guegan <manzerbredes@mailbox.org> | 2022-02-26 17:05:47 +0100 |
|---|---|---|
| committer | Loic Guegan <manzerbredes@mailbox.org> | 2022-02-26 17:05:47 +0100 |
| commit | 65e9049351130ff54b305dd8c82c969456a0797b (patch) | |
| tree | df9b4ec2d93a924694defeea07549ec5543bad83 /src/MainWindow.cpp | |
| parent | e5aa5be42cbf93a31d3be387f24b3413f2983898 (diff) | |
Improve engine support
Diffstat (limited to 'src/MainWindow.cpp')
| -rw-r--r-- | src/MainWindow.cpp | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp index 407ec80..b3ed9c4 100644 --- a/src/MainWindow.cpp +++ b/src/MainWindow.cpp @@ -1,5 +1,6 @@ #include "MainWindow.hpp" #include "ChessArbiter.hpp" +#include "engine_tab/EngineTab.hpp" #include "pgnp.hpp" #include "preferences/preferences.hpp" @@ -40,11 +41,16 @@ MainWindow::MainWindow() wxMenu *menuBase = new wxMenu; menuBase->Append(5, "New", "Create new database"); + // Engine menu + wxMenu *engineMenu = new wxMenu; + engineMenu->Append(6, "New", "Create a new engine configuration"); + /// Menu bar menuBar = new wxMenuBar; menuBar->Append(menuFile, "&File"); menuBar->Append(menuGame, "&Game"); menuBar->Append(menuBase, "&Database"); + menuBar->Append(engineMenu, "&Engines"); SetMenuBar(menuBar); // Create the wxNotebook widget @@ -57,8 +63,12 @@ MainWindow::MainWindow() Bind(NEW_GAME_EVENT, &MainWindow::OnNewGame, this, wxID_ANY); Bind(wxEVT_CLOSE_WINDOW, &MainWindow::OnClose, this); - /*BaseTab *bt = new BaseTab((wxFrame *)notebook, "/home/loic/hartwig_tests.pgn"); - notebook->AddPage(bt, bt->GetLabel()); + /*BaseTab *bt = new BaseTab((wxFrame *)notebook, + "/home/loic/hartwig_tests.pgn"); notebook->AddPage(bt, bt->GetLabel()); + notebook->SetSelection(notebook->GetPageIndex(bt));*/ + + /*EngineTab *bt = new EngineTab((wxWindow *)notebook, + "/home/loic/.local/bin/stockfish"); notebook->AddPage(bt, bt->GetLabel()); notebook->SetSelection(notebook->GetPageIndex(bt));*/ } |
