FS2_Open
Open source remastering of the Freespace 2 engine
weaponeditordlg.h
Go to the documentation of this file.
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 the
6  * source.
7  *
8 */
9 
10 
11 
12 #include "ship/ship.h"
13 
15 // WeaponEditorDlg dialog
16 
17 class WeaponEditorDlg : public CDialog
18 {
19 // Construction
20 public:
21  void update_pilot();
22  void OnCancel();
23  void change_selection();
24  void OnOK();
25  WeaponEditorDlg(CWnd* pParent = NULL); // standard constructor
26 
32  int m_ship;
36 
37 // Dialog Data
38  //{{AFX_DATA(WeaponEditorDlg)
39  enum { IDD = IDD_WEAPON_EDITOR };
40  CSpinButtonCtrl m_spin4;
41  CSpinButtonCtrl m_spin3;
42  CSpinButtonCtrl m_spin2;
43  CSpinButtonCtrl m_spin1;
45  int m_ammo1;
46  int m_ammo2;
47  int m_ammo3;
48  int m_ammo4;
49  int m_gun1;
50  int m_gun2;
51  int m_gun3;
57  //}}AFX_DATA
58 
59 
60 // Overrides
61  // ClassWizard generated virtual function overrides
62  //{{AFX_VIRTUAL(WeaponEditorDlg)
63  protected:
64  virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
65  //}}AFX_VIRTUAL
66 
67 // Implementation
68 protected:
69 
70  // Generated message map functions
71  //{{AFX_MSG(WeaponEditorDlg)
72  virtual BOOL OnInitDialog();
73  afx_msg void OnSelchangeList();
74  afx_msg void OnClose();
75  afx_msg void OnSelchangeMissile1();
76  afx_msg void OnSelchangeMissile2();
77  afx_msg void OnSelchangeMissile3();
78  afx_msg void OnSelchangeMissile4();
79  //}}AFX_MSG
80  DECLARE_MESSAGE_MAP()
81 };
virtual BOOL OnInitDialog()
afx_msg void OnSelchangeMissile3()
afx_msg void OnClose()
afx_msg void OnSelchangeMissile2()
afx_msg void OnSelchangeMissile4()
CSpinButtonCtrl m_spin1
afx_msg void OnSelchangeMissile1()
#define IDD_WEAPON_EDITOR
Definition: resource.h:35
afx_msg void OnSelchangeList()
WeaponEditorDlg(CWnd *pParent=NULL)
CSpinButtonCtrl m_spin2
CSpinButtonCtrl m_spin3
int BOOL
Definition: config.h:80
ship_weapon * cur_weapon
virtual void DoDataExchange(CDataExchange *pDX)
ship_weapon pilot
CSpinButtonCtrl m_spin4