aboutsummaryrefslogtreecommitdiff
path: root/src/MainWindow.hpp
diff options
context:
space:
mode:
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