aboutsummaryrefslogtreecommitdiff
path: root/src/MainWindow.hpp
diff options
context:
space:
mode:
authorLoic Guegan <manzerbredes@mailbox.org>2022-02-26 21:43:09 +0100
committerLoic Guegan <manzerbredes@mailbox.org>2022-02-26 21:43:09 +0100
commit6c34ef20fb217d240c790b24ea330592679ac010 (patch)
treebd684043d7aeb22f578d525e4f4a71c05eb5577b /src/MainWindow.hpp
parente601902dd5a9f023594fef6a0f4995e59b4d9a0e (diff)
Now engines can be added
Diffstat (limited to 'src/MainWindow.hpp')
-rw-r--r--src/MainWindow.hpp15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/MainWindow.hpp b/src/MainWindow.hpp
index 4111612..4fa3318 100644
--- a/src/MainWindow.hpp
+++ b/src/MainWindow.hpp
@@ -11,27 +11,30 @@
wxDECLARE_EVENT(REFRESH_TAB_TITLE, wxCommandEvent);
wxDECLARE_EVENT(NEW_GAME_EVENT, wxCommandEvent);
wxDECLARE_EVENT(CLOSE_TAB_EVENT, wxCommandEvent);
+wxDECLARE_EVENT(REFRESH_ENGINE_LIST, wxCommandEvent);
class MainWindow : public wxFrame {
wxAuiNotebook *notebook;
wxMenu *menuGame;
wxMenuBar *menuBar;
wxPreferencesEditor *prefsEditor;
+ wxMenu *manageMenu;
- void OnExit(wxCommandEvent &event);
void OnClose(wxCloseEvent &e);
- void OnMenuNewGame(wxCommandEvent &event);
+ void NewGame(bool useFen);
void OnNewGame(wxCommandEvent &event);
- void OnOpen(wxCommandEvent &event);
+ void OpenFile();
void OnPageChange(wxAuiNotebookEvent &event);
void OnRefreshTabTitle(wxCommandEvent &event);
void NewGame(Game *game);
- void OnSettings(wxCommandEvent &event);
- void OnNewEngine(wxCommandEvent &event);
+ void OpenSettings();
+ void NewEngine();
void OnCloseTabEvent(wxCommandEvent &event);
+ void OnRefreshEngineList(wxCommandEvent &event);
+ void OnMenuItemClick(wxCommandEvent &event);
public:
MainWindow();
void ApplyPreferences();
- std::vector<TabInfos*> ListTabInfos();
+ std::vector<TabInfos *> ListTabInfos();
}; \ No newline at end of file