summaryrefslogtreecommitdiffhomepage
path: root/StarsEx/FltDlg.h
blob: 2b7872af78266b3a6584ef7a257a69ea6925a25f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
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