diff options
author | Aki <please@ignore.pl> | 2022-04-01 21:23:39 +0200 |
---|---|---|
committer | Aki <please@ignore.pl> | 2022-04-01 21:23:39 +0200 |
commit | 3c487c5cd69c53d6fea948643c0a76df03516605 (patch) | |
tree | 72730c7b8b26a5ef8fc9a987ec4c16129efd5aac /StarsEx/FltDlg.h | |
parent | 8f353abd0bfe18baddd8a8250ab7c4f2d1c83a6e (diff) | |
download | starshatter-3c487c5cd69c53d6fea948643c0a76df03516605.zip starshatter-3c487c5cd69c53d6fea948643c0a76df03516605.tar.gz starshatter-3c487c5cd69c53d6fea948643c0a76df03516605.tar.bz2 |
Moved Stars45 to StarsEx
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 + |