]> icculus.org git repositories - taylor/freespace2.git/blob - include/shipflagsdlg.h
Initial revision
[taylor/freespace2.git] / include / shipflagsdlg.h
1 #include "shipeditordlg.h"
2
3 // ShipFlagsDlg.h : header file
4 //
5
6 /////////////////////////////////////////////////////////////////////////////
7 // ship_flags_dlg dialog
8
9 class ship_flags_dlg : public CDialog
10 {
11 // Construction
12 public:
13         ship_flags_dlg(CWnd* pParent = NULL);   // standard constructor
14         void OnOK();
15         void update_ship(int ship);
16         void setup(int n);
17         int tristate_set(int val, int cur_state);
18         void set_modified();
19
20 // Dialog Data
21         //{{AFX_DATA(ship_flags_dlg)
22         enum { IDD = IDD_SHIP_FLAGS };
23         CButton m_red_alert_carry;
24         CButton m_scannable;
25         CButton m_reinforcement;
26         CButton m_protect_ship;
27         CButton m_beam_protect_ship;
28         CButton m_no_dynamic;
29         CButton m_no_arrival_music;
30         CButton m_kamikaze;
31         CButton m_invulnerable;
32         CButton m_ignore_count;
33         CButton m_hidden;
34         CButton m_escort;
35         CButton m_destroy;
36         CButton m_cargo_known;
37         CButton m_special_warp;
38         CSpinButtonCtrl m_destroy_spin;
39         numeric_edit_control m_kdamage;
40         numeric_edit_control    m_destroy_value;
41         numeric_edit_control m_escort_value;
42         numeric_edit_control m_respawn_priority;
43         //}}AFX_DATA
44
45 // Overrides
46         // ClassWizard generated virtual function overrides
47         //{{AFX_VIRTUAL(ship_flags_dlg)
48         protected:
49         virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
50         //}}AFX_VIRTUAL
51
52 // Implementation
53 protected:
54         int p_enable;  // used to enable(1)/disable(0) controls based on if a player ship
55
56         // Generated message map functions
57         //{{AFX_MSG(ship_flags_dlg)
58         virtual BOOL OnInitDialog();
59         afx_msg void OnCargoKnown();
60         afx_msg void OnDestroyCheck();
61         afx_msg void OnEscort();
62         afx_msg void OnHiddenFromSensors();
63         afx_msg void OnIgnoreCount();
64         afx_msg void OnInvulnerable();
65         afx_msg void OnKamikaze();
66         afx_msg void OnNoArrivalMusic();
67         afx_msg void OnNoDynamic();
68         afx_msg void OnProtectShip();
69         afx_msg void OnBeamProtectShip();
70         afx_msg void OnReinforcement();
71         afx_msg void OnScannable();
72         afx_msg void OnRedalertcarry();
73         //}}AFX_MSG
74         DECLARE_MESSAGE_MAP()
75 };
76