2 * Copyright (C) Volition, Inc. 1999. All rights reserved.
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
10 * $Logfile: /Freespace2/code/FRED2/WeaponEditorDlg.h $
15 * Weapon editor dialog box handling code
18 * Revision 1.2 2002/06/09 04:41:15 relnev
19 * added copyright header
21 * Revision 1.1.1.1 2002/05/03 03:28:12 root
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.
30 * 1 10/07/98 3:02p Dave
32 * 1 10/07/98 3:00p Dave
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.
38 * 7 5/30/97 4:50p Hoffoss
39 * Added code to allow marked ship editing of data in child dialogs of
42 * 6 4/21/97 5:02p Hoffoss
43 * Player/player status editing supported, and both saved and loaded from
46 * 5 4/16/97 1:59p Hoffoss
47 * Weapon editor now fully functional.
49 * 4 4/09/97 11:48a Hoffoss
50 * Initial work to weapon editor.
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.
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.
67 /////////////////////////////////////////////////////////////////////////////
68 // WeaponEditorDlg dialog
70 class WeaponEditorDlg : public CDialog
76 void change_selection();
78 WeaponEditorDlg(CWnd* pParent = NULL); // standard constructor
88 ship_weapon pilot, *cur_weapon;
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;
114 // ClassWizard generated virtual function overrides
115 //{{AFX_VIRTUAL(WeaponEditorDlg)
117 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
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();
133 DECLARE_MESSAGE_MAP()