aboutsummaryrefslogtreecommitdiff
path: root/src/MainWindow.hpp
diff options
context:
space:
mode:
authorLoic Guegan <manzerbredes@mailbox.org>2022-02-23 18:11:55 +0100
committerLoic Guegan <manzerbredes@mailbox.org>2022-02-23 18:11:55 +0100
commitce941c146aea7925bded6b9d2a0d0559d3156ad3 (patch)
tree4c52e02600e3fd127bfb28b3e974d45541ec9e4e /src/MainWindow.hpp
Create repository
Diffstat (limited to 'src/MainWindow.hpp')
-rw-r--r--src/MainWindow.hpp25
1 files changed, 25 insertions, 0 deletions
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 <wx/aui/auibook.h>
+#include <wx/filedlg.h>
+#include <wx/textdlg.h>
+
+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