From e33e19d0587146859d48a134ec9fd94e7b7ba5cd Mon Sep 17 00:00:00 2001 From: "FWoltermann@gmail.com" Date: Thu, 8 Dec 2011 14:53:40 +0000 Subject: Initial upload --- Stars45/FltDlg.h | 81 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 Stars45/FltDlg.h (limited to 'Stars45/FltDlg.h') diff --git a/Stars45/FltDlg.h b/Stars45/FltDlg.h new file mode 100644 index 0000000..13deb42 --- /dev/null +++ b/Stars45/FltDlg.h @@ -0,0 +1,81 @@ +/* Project Starshatter 4.5 + Destroyer Studios LLC + Copyright © 1997-2004. All Rights Reserved. + + SUBSYSTEM: Stars.exe + FILE: FltDlg.h + AUTHOR: John DiCamillo + + + OVERVIEW + ======== + Flight Operations Active Window class +*/ + +#ifndef FltDlg_h +#define FltDlg_h + +#include "Types.h" +#include "FormWindow.h" + +// +--------------------------------------------------------------------+ + +class FlightPlanner; +class GameScreen; +class Ship; + +// +--------------------------------------------------------------------+ + +class FltDlg : public FormWindow +{ +public: + FltDlg(Screen* s, FormDef& def, GameScreen* mgr); + virtual ~FltDlg(); + + virtual void RegisterControls(); + + // Operations: + virtual void Show(); + virtual void Hide(); + + virtual void OnFilter(AWEvent* event); + virtual void OnPackage(AWEvent* event); + virtual void OnAlert(AWEvent* event); + virtual void OnLaunch(AWEvent* event); + virtual void OnStandDown(AWEvent* event); + virtual void OnRecall(AWEvent* event); + virtual void OnClose(AWEvent* event); + virtual void OnMissionType(AWEvent* event); + + virtual void ExecFrame(); + void SetShip(Ship* s); + void UpdateSelection(); + void UpdateObjective(); + +protected: + GameScreen* manager; + + ComboBox* filter_list; + ListBox* hangar_list; + + Button* package_btn; + Button* alert_btn; + Button* launch_btn; + Button* stand_btn; + Button* recall_btn; + Button* close_btn; + + int mission_type; + Button* mission_btn[6]; + + ListBox* objective_list; + ListBox* loadout_list; + + Ship* ship; + FlightPlanner* flight_planner; + + int patrol_pattern; +}; + +#endif FltDlg_h + -- cgit v1.1