diff options
Diffstat (limited to 'StarsEx/FltDlg.h')
-rw-r--r-- | StarsEx/FltDlg.h | 80 |
1 files changed, 80 insertions, 0 deletions
diff --git a/StarsEx/FltDlg.h b/StarsEx/FltDlg.h new file mode 100644 index 0000000..2b7872a --- /dev/null +++ b/StarsEx/FltDlg.h @@ -0,0 +1,80 @@ +/* Starshatter: The Open Source Project + Copyright (c) 2021-2022, Starshatter: The Open Source Project Contributors + Copyright (c) 2011-2012, Starshatter OpenSource Distribution Contributors + Copyright (c) 1997-2006, Destroyer Studios LLC. + + 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 + |