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