]> icculus.org git repositories - taylor/freespace2.git/blob - include/weaponeditordlg.h
Initial revision
[taylor/freespace2.git] / include / weaponeditordlg.h
1 /*
2  * $Logfile: /Freespace2/code/FRED2/WeaponEditorDlg.h $
3  * $Revision$
4  * $Date$
5  * $Author$
6  *
7  * Weapon editor dialog box handling code
8  *
9  * $Log$
10  * Revision 1.1  2002/05/03 03:28:12  root
11  * Initial revision
12  *
13  * 
14  * 2     10/07/98 6:28p Dave
15  * Initial checkin. Renamed all relevant stuff to be Fred2 instead of
16  * Fred. Globalized mission and campaign file extensions. Removed Silent
17  * Threat specific code.
18  * 
19  * 1     10/07/98 3:02p Dave
20  * 
21  * 1     10/07/98 3:00p Dave
22  * 
23  * 8     2/22/98 1:32a Hoffoss
24  * Changed editor to use raw ammo counts isntead of percentages, and make
25  * it select first item in list by default.
26  * 
27  * 7     5/30/97 4:50p Hoffoss
28  * Added code to allow marked ship editing of data in child dialogs of
29  * ship editor dialog.
30  * 
31  * 6     4/21/97 5:02p Hoffoss
32  * Player/player status editing supported, and both saved and loaded from
33  * Mission files.
34  * 
35  * 5     4/16/97 1:59p Hoffoss
36  * Weapon editor now fully functional.
37  * 
38  * 4     4/09/97 11:48a Hoffoss
39  * Initial work to weapon editor.
40  * 
41  * 3     3/31/97 6:07p Hoffoss
42  * Fixed several errors, including BG editor not graying fields, BG editor
43  * not updating image when changed, Removed obsolete data from Weapon
44  * editor, priority not being saved when missions saved, priority not
45  * editable in initial orders editor.
46  * 
47  * 2     2/17/97 5:28p Hoffoss
48  * Checked RCS headers, added them were missing, changing description to
49  * something better, etc where needed.
50  *
51  * $NoKeywords: $
52  */
53
54 #include "ship.h"
55
56 /////////////////////////////////////////////////////////////////////////////
57 // WeaponEditorDlg dialog
58
59 class WeaponEditorDlg : public CDialog
60 {
61 // Construction
62 public:
63         void update_pilot();
64         void OnCancel();
65         void change_selection();
66         void OnOK();
67         WeaponEditorDlg(CWnd* pParent = NULL);   // standard constructor
68
69         int m_ammo_max1;
70         int m_ammo_max2;
71         int m_ammo_max3;
72         int m_ammo_max4;
73         int m_last_item;
74         int m_ship;
75         int m_ship_class;
76         int m_multi_edit;
77         ship_weapon pilot, *cur_weapon;
78
79 // Dialog Data
80         //{{AFX_DATA(WeaponEditorDlg)
81         enum { IDD = IDD_WEAPON_EDITOR };
82         CSpinButtonCtrl m_spin4;
83         CSpinButtonCtrl m_spin3;
84         CSpinButtonCtrl m_spin2;
85         CSpinButtonCtrl m_spin1;
86         int             m_ai_class;
87         int             m_ammo1;
88         int             m_ammo2;
89         int             m_ammo3;
90         int             m_ammo4;
91         int             m_gun1;
92         int             m_gun2;
93         int             m_gun3;
94         int             m_missile1;
95         int             m_missile2;
96         int             m_missile3;
97         int             m_missile4;
98         int             m_cur_item;
99         //}}AFX_DATA
100
101
102 // Overrides
103         // ClassWizard generated virtual function overrides
104         //{{AFX_VIRTUAL(WeaponEditorDlg)
105         protected:
106         virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
107         //}}AFX_VIRTUAL
108
109 // Implementation
110 protected:
111
112         // Generated message map functions
113         //{{AFX_MSG(WeaponEditorDlg)
114         virtual BOOL OnInitDialog();
115         afx_msg void OnSelchangeList();
116         afx_msg void OnClose();
117         afx_msg void OnSelchangeMissile1();
118         afx_msg void OnSelchangeMissile2();
119         afx_msg void OnSelchangeMissile3();
120         afx_msg void OnSelchangeMissile4();
121         //}}AFX_MSG
122         DECLARE_MESSAGE_MAP()
123 };
124