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/ShipClassEditorDlg.cpp $
15 * Ship class editor dialog handling code
18 * Revision 1.3 2002/06/09 04:41:17 relnev
19 * added copyright header
21 * Revision 1.2 2002/05/07 03:16:44 theoddone33
22 * The Great Newline Fix
24 * Revision 1.1.1.1 2002/05/03 03:28:08 root
28 * 2 10/07/98 6:28p Dave
29 * Initial checkin. Renamed all relevant stuff to be Fred2 instead of
30 * Fred. Globalized mission and campaign file extensions. Removed Silent
31 * Threat specific code.
33 * 1 10/07/98 3:01p Dave
35 * 1 10/07/98 3:00p Dave
37 * 2 2/17/97 5:28p Hoffoss
38 * Checked RCS headers, added them were missing, changing description to
39 * something better, etc where needed.
46 #include "shipclasseditordlg.h"
51 static char THIS_FILE[] = __FILE__;
54 /////////////////////////////////////////////////////////////////////////////
55 // CShipClassEditorDlg dialog
58 CShipClassEditorDlg::CShipClassEditorDlg(CWnd* pParent /*=NULL*/)
59 : CDialog(CShipClassEditorDlg::IDD, pParent)
61 //{{AFX_DATA_INIT(CShipClassEditorDlg)
62 m_ShipClassAfterburner = FALSE;
63 m_ShipClassAIClass = -1;
64 m_ShipClassArmor = _T("");
65 m_ShipClassCloak = FALSE;
66 m_ShipClassDebrisModel = -1;
67 m_ShipClassModel = -1;
68 m_ShipClassEngine = _T("");
69 m_ShipClassExplosion1 = _T("");
70 m_ShipClassExplosion2 = _T("");
71 m_ShipClassIFF = _T("");
72 m_ShipClassManufacturer = _T("");
73 m_ShipClassMaxBank = 0;
74 m_ShipClassMaxPitch = 0;
75 m_ShipClassMaxRoll = 0;
76 m_ShipClassMaxSpeed = 0;
77 m_ShipClassName = _T("");
78 m_ShipClassPowerPlant = _T("");
80 m_ShipClassShields = 0;
81 m_ShipClassWarpdrive = FALSE;
82 m_ShipClassTurretWeapon1 = _T("");
83 m_ShipClassTurretWeapon2 = _T("");
84 m_ShipClassWeaponSpecial = _T("");
85 m_ShipClassWeapon1 = _T("");
86 m_ShipClassWeapon2 = _T("");
91 void CShipClassEditorDlg::DoDataExchange(CDataExchange* pDX)
93 CDialog::DoDataExchange(pDX);
94 //{{AFX_DATA_MAP(CShipClassEditorDlg)
95 DDX_Control(pDX, IDC_SOUNDS, m_SoundsEditor);
96 DDX_Control(pDX, IDC_SCLASS_WINDOW, m_ShipClassWindow);
97 DDX_Control(pDX, IDC_SCLASS_NEW, m_ShipClassNew);
98 DDX_Control(pDX, IDC_SCLASS_DELETE, m_ShipClassDelete);
99 DDX_Control(pDX, IDC_MODELS, m_ModelsEditor);
100 DDX_Control(pDX, IDC_GOALS, m_GoalsEditor);
101 DDX_Check(pDX, IDC_SCLASS_AFTERBURNER, m_ShipClassAfterburner);
102 DDX_CBIndex(pDX, IDC_SCLASS_AI_CLASS, m_ShipClassAIClass);
103 DDX_CBString(pDX, IDC_SCLASS_ARMOR, m_ShipClassArmor);
104 DDX_Check(pDX, IDC_SCLASS_CLOAK, m_ShipClassCloak);
105 DDX_CBIndex(pDX, IDC_SCLASS_DEBRIS_MODEL, m_ShipClassDebrisModel);
106 DDX_CBIndex(pDX, IDC_SCLASS_3D_OBJECT, m_ShipClassModel);
107 DDX_Text(pDX, IDC_SCLASS_ENGINES, m_ShipClassEngine);
108 DDX_CBString(pDX, IDC_SCLASS_EXPLOSION1, m_ShipClassExplosion1);
109 DDX_CBString(pDX, IDC_SCLASS_EXPLOSION2, m_ShipClassExplosion2);
110 DDX_CBString(pDX, IDC_SCLASS_IFF, m_ShipClassIFF);
111 DDX_Text(pDX, IDC_SCLASS_MANUFACTURER, m_ShipClassManufacturer);
112 DDX_Text(pDX, IDC_SCLASS_MAX_BANK, m_ShipClassMaxBank);
113 DDX_Text(pDX, IDC_SCLASS_MAX_PITCH, m_ShipClassMaxPitch);
114 DDX_Text(pDX, IDC_SCLASS_MAX_ROLL, m_ShipClassMaxRoll);
115 DDX_Text(pDX, IDC_SCLASS_MAX_SPEED, m_ShipClassMaxSpeed);
116 DDX_CBString(pDX, IDC_SCLASS_NAME, m_ShipClassName);
117 DDX_Text(pDX, IDC_SCLASS_POWER_PLANT, m_ShipClassPowerPlant);
118 DDX_Text(pDX, IDC_SCLASS_SCORE, m_ShipClassScore);
119 DDX_Text(pDX, IDC_SCLASS_SHIELDS, m_ShipClassShields);
120 DDX_Check(pDX, IDC_SCLASS_WARPDRIVE, m_ShipClassWarpdrive);
121 DDX_CBString(pDX, IDC_SCLASS_TURRET_WEAPON1, m_ShipClassTurretWeapon1);
122 DDX_CBString(pDX, IDC_SCLASS_TURRET_WEAPON2, m_ShipClassTurretWeapon2);
123 DDX_CBString(pDX, IDC_SCLASS_WEAPON_SPECIAL, m_ShipClassWeaponSpecial);
124 DDX_CBString(pDX, IDC_SCLASS_WEAPON1, m_ShipClassWeapon1);
125 DDX_CBString(pDX, IDC_SCLASS_WEAPON2, m_ShipClassWeapon2);
130 BEGIN_MESSAGE_MAP(CShipClassEditorDlg, CDialog)
131 //{{AFX_MSG_MAP(CShipClassEditorDlg)
132 // NOTE: the ClassWizard will add message map macros here
136 /////////////////////////////////////////////////////////////////////////////
137 // CShipClassEditorDlg message handlers