summaryrefslogtreecommitdiffhomepage
path: root/Stars45/MenuDlg.h
diff options
context:
space:
mode:
authorFWoltermann@gmail.com <FWoltermann@gmail.com@076cb2c4-205e-83fd-5cf3-1be9aa105544>2011-12-08 14:53:40 +0000
committerFWoltermann@gmail.com <FWoltermann@gmail.com@076cb2c4-205e-83fd-5cf3-1be9aa105544>2011-12-08 14:53:40 +0000
commite33e19d0587146859d48a134ec9fd94e7b7ba5cd (patch)
tree69d048c8801858d2756ab3a487090a7a1b74bf14 /Stars45/MenuDlg.h
downloadstarshatter-e33e19d0587146859d48a134ec9fd94e7b7ba5cd.zip
starshatter-e33e19d0587146859d48a134ec9fd94e7b7ba5cd.tar.gz
starshatter-e33e19d0587146859d48a134ec9fd94e7b7ba5cd.tar.bz2
Initial upload
Diffstat (limited to 'Stars45/MenuDlg.h')
-rw-r--r--Stars45/MenuDlg.h86
1 files changed, 86 insertions, 0 deletions
diff --git a/Stars45/MenuDlg.h b/Stars45/MenuDlg.h
new file mode 100644
index 0000000..be21feb
--- /dev/null
+++ b/Stars45/MenuDlg.h
@@ -0,0 +1,86 @@
+/* Project Starshatter 4.5
+ Destroyer Studios LLC
+ Copyright © 1997-2004. All Rights Reserved.
+
+ SUBSYSTEM: Stars.exe
+ FILE: MenuDlg.h
+ AUTHOR: John DiCamillo
+
+
+ OVERVIEW
+ ========
+ Main Menu Dialog Active Window class
+*/
+
+#ifndef MenuDlg_h
+#define MenuDlg_h
+
+#include "Types.h"
+#include "FormWindow.h"
+#include "Bitmap.h"
+#include "Button.h"
+#include "ComboBox.h"
+#include "ListBox.h"
+#include "Font.h"
+#include "Text.h"
+
+// +--------------------------------------------------------------------+
+
+class MenuScreen;
+class Campaign;
+class Starshatter;
+
+// +--------------------------------------------------------------------+
+
+class MenuDlg : public FormWindow
+{
+public:
+ MenuDlg(Screen* s, FormDef& def, MenuScreen* mgr);
+ virtual ~MenuDlg();
+
+ virtual void RegisterControls();
+ virtual void Show();
+ virtual void ExecFrame();
+
+ // Operations:
+ virtual void OnStart(AWEvent* event);
+ virtual void OnCampaign(AWEvent* event);
+ virtual void OnMission(AWEvent* event);
+ virtual void OnPlayer(AWEvent* event);
+ virtual void OnMultiplayer(AWEvent* event);
+ virtual void OnMod(AWEvent* event);
+ virtual void OnTacReference(AWEvent* event);
+
+ virtual void OnVideo(AWEvent* event);
+ virtual void OnOptions(AWEvent* event);
+ virtual void OnControls(AWEvent* event);
+ virtual void OnQuit(AWEvent* event);
+
+ virtual void OnButtonEnter(AWEvent* event);
+ virtual void OnButtonExit(AWEvent* event);
+
+protected:
+ MenuScreen* manager;
+
+ Button* btn_start;
+ Button* btn_campaign;
+ Button* btn_mission;
+ Button* btn_player;
+ Button* btn_multi;
+ Button* btn_mod;
+ Button* btn_tac;
+
+ Button* btn_video;
+ Button* btn_options;
+ Button* btn_controls;
+ Button* btn_quit;
+
+ ActiveWindow* version;
+ ActiveWindow* description;
+
+ Starshatter* stars;
+ Campaign* campaign;
+};
+
+#endif MenuDlg_h
+