From ce941c146aea7925bded6b9d2a0d0559d3156ad3 Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Wed, 23 Feb 2022 18:11:55 +0100 Subject: Create repository --- src/MainWindow.hpp | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 src/MainWindow.hpp (limited to 'src/MainWindow.hpp') diff --git a/src/MainWindow.hpp b/src/MainWindow.hpp new file mode 100644 index 0000000..78d481e --- /dev/null +++ b/src/MainWindow.hpp @@ -0,0 +1,25 @@ +#include "game_tab/GameTab.hpp" +#include "ochess.hpp" +#include +#include +#include + +wxDECLARE_EVENT(REFRESH_TAB_TITLE, wxCommandEvent); + +class MainWindow : public wxFrame { + wxAuiNotebook *notebook; + wxMenu *menuGame; + wxMenuBar *menuBar; + + void OnExit(wxCommandEvent &event); + void OnNewGame(wxCommandEvent &event); + void OnOpen(wxCommandEvent &event); + void OnPageChange(wxAuiNotebookEvent &event); + void OnRefreshTabTitle(wxCommandEvent &event); + void NewGame(Game *game); + void OnSettings(wxCommandEvent &event); + +public: + MainWindow(); + void ApplyPreferences(); +}; \ No newline at end of file -- cgit v1.2.3