2 * $Logfile: /Freespace2/code/FRED2/ShipClassEditorDlg.cpp $
7 * Ship class editor dialog handling code
10 * Revision 1.1 2002/05/03 03:28:08 root
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.
19 * 1 10/07/98 3:01p Dave
21 * 1 10/07/98 3:00p Dave
23 * 2 2/17/97 5:28p Hoffoss
24 * Checked RCS headers, added them were missing, changing description to
25 * something better, etc where needed.
32 #include "shipclasseditordlg.h"
37 static char THIS_FILE[] = __FILE__;
40 /////////////////////////////////////////////////////////////////////////////
41 // CShipClassEditorDlg dialog
44 CShipClassEditorDlg::CShipClassEditorDlg(CWnd* pParent /*=NULL*/)
45 : CDialog(CShipClassEditorDlg::IDD, pParent)
47 //{{AFX_DATA_INIT(CShipClassEditorDlg)
48 m_ShipClassAfterburner = FALSE;
49 m_ShipClassAIClass = -1;
50 m_ShipClassArmor = _T("");
51 m_ShipClassCloak = FALSE;
52 m_ShipClassDebrisModel = -1;
53 m_ShipClassModel = -1;
54 m_ShipClassEngine = _T("");
55 m_ShipClassExplosion1 = _T("");
56 m_ShipClassExplosion2 = _T("");
57 m_ShipClassIFF = _T("");
58 m_ShipClassManufacturer = _T("");
59 m_ShipClassMaxBank = 0;
60 m_ShipClassMaxPitch = 0;
61 m_ShipClassMaxRoll = 0;
62 m_ShipClassMaxSpeed = 0;
63 m_ShipClassName = _T("");
64 m_ShipClassPowerPlant = _T("");
66 m_ShipClassShields = 0;
67 m_ShipClassWarpdrive = FALSE;
68 m_ShipClassTurretWeapon1 = _T("");
69 m_ShipClassTurretWeapon2 = _T("");
70 m_ShipClassWeaponSpecial = _T("");
71 m_ShipClassWeapon1 = _T("");
72 m_ShipClassWeapon2 = _T("");
77 void CShipClassEditorDlg::DoDataExchange(CDataExchange* pDX)
79 CDialog::DoDataExchange(pDX);
80 //{{AFX_DATA_MAP(CShipClassEditorDlg)
81 DDX_Control(pDX, IDC_SOUNDS, m_SoundsEditor);
82 DDX_Control(pDX, IDC_SCLASS_WINDOW, m_ShipClassWindow);
83 DDX_Control(pDX, IDC_SCLASS_NEW, m_ShipClassNew);
84 DDX_Control(pDX, IDC_SCLASS_DELETE, m_ShipClassDelete);
85 DDX_Control(pDX, IDC_MODELS, m_ModelsEditor);
86 DDX_Control(pDX, IDC_GOALS, m_GoalsEditor);
87 DDX_Check(pDX, IDC_SCLASS_AFTERBURNER, m_ShipClassAfterburner);
88 DDX_CBIndex(pDX, IDC_SCLASS_AI_CLASS, m_ShipClassAIClass);
89 DDX_CBString(pDX, IDC_SCLASS_ARMOR, m_ShipClassArmor);
90 DDX_Check(pDX, IDC_SCLASS_CLOAK, m_ShipClassCloak);
91 DDX_CBIndex(pDX, IDC_SCLASS_DEBRIS_MODEL, m_ShipClassDebrisModel);
92 DDX_CBIndex(pDX, IDC_SCLASS_3D_OBJECT, m_ShipClassModel);
93 DDX_Text(pDX, IDC_SCLASS_ENGINES, m_ShipClassEngine);
94 DDX_CBString(pDX, IDC_SCLASS_EXPLOSION1, m_ShipClassExplosion1);
95 DDX_CBString(pDX, IDC_SCLASS_EXPLOSION2, m_ShipClassExplosion2);
96 DDX_CBString(pDX, IDC_SCLASS_IFF, m_ShipClassIFF);
97 DDX_Text(pDX, IDC_SCLASS_MANUFACTURER, m_ShipClassManufacturer);
98 DDX_Text(pDX, IDC_SCLASS_MAX_BANK, m_ShipClassMaxBank);
99 DDX_Text(pDX, IDC_SCLASS_MAX_PITCH, m_ShipClassMaxPitch);
100 DDX_Text(pDX, IDC_SCLASS_MAX_ROLL, m_ShipClassMaxRoll);
101 DDX_Text(pDX, IDC_SCLASS_MAX_SPEED, m_ShipClassMaxSpeed);
102 DDX_CBString(pDX, IDC_SCLASS_NAME, m_ShipClassName);
103 DDX_Text(pDX, IDC_SCLASS_POWER_PLANT, m_ShipClassPowerPlant);
104 DDX_Text(pDX, IDC_SCLASS_SCORE, m_ShipClassScore);
105 DDX_Text(pDX, IDC_SCLASS_SHIELDS, m_ShipClassShields);
106 DDX_Check(pDX, IDC_SCLASS_WARPDRIVE, m_ShipClassWarpdrive);
107 DDX_CBString(pDX, IDC_SCLASS_TURRET_WEAPON1, m_ShipClassTurretWeapon1);
108 DDX_CBString(pDX, IDC_SCLASS_TURRET_WEAPON2, m_ShipClassTurretWeapon2);
109 DDX_CBString(pDX, IDC_SCLASS_WEAPON_SPECIAL, m_ShipClassWeaponSpecial);
110 DDX_CBString(pDX, IDC_SCLASS_WEAPON1, m_ShipClassWeapon1);
111 DDX_CBString(pDX, IDC_SCLASS_WEAPON2, m_ShipClassWeapon2);
116 BEGIN_MESSAGE_MAP(CShipClassEditorDlg, CDialog)
117 //{{AFX_MSG_MAP(CShipClassEditorDlg)
118 // NOTE: the ClassWizard will add message map macros here
122 /////////////////////////////////////////////////////////////////////////////
123 // CShipClassEditorDlg message handlers