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