]> icculus.org git repositories - taylor/freespace2.git/blob - src/fred2/shipclasseditordlg.cpp
Initial revision
[taylor/freespace2.git] / src / fred2 / shipclasseditordlg.cpp
1 /*
2  * $Logfile: /Freespace2/code/FRED2/ShipClassEditorDlg.cpp $
3  * $Revision$
4  * $Date$
5  * $Author$
6  *
7  * Ship class editor dialog handling code
8  *
9  * $Log$
10  * Revision 1.1  2002/05/03 03:28:08  root
11  * Initial revision
12  *
13  * 
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.
18  * 
19  * 1     10/07/98 3:01p Dave
20  * 
21  * 1     10/07/98 3:00p Dave
22  * 
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.
26  *
27  * $NoKeywords: $
28  */
29
30 #include "stdafx.h"
31 #include "fred.h"
32 #include "shipclasseditordlg.h"
33
34 #ifdef _DEBUG
35 #define new DEBUG_NEW
36 #undef THIS_FILE
37 static char THIS_FILE[] = __FILE__;
38 #endif
39
40 /////////////////////////////////////////////////////////////////////////////
41 // CShipClassEditorDlg dialog
42
43
44 CShipClassEditorDlg::CShipClassEditorDlg(CWnd* pParent /*=NULL*/)
45         : CDialog(CShipClassEditorDlg::IDD, pParent)
46 {
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("");
65         m_ShipClassScore = 0;
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("");
73         //}}AFX_DATA_INIT
74 }
75
76
77 void CShipClassEditorDlg::DoDataExchange(CDataExchange* pDX)
78 {
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);
112         //}}AFX_DATA_MAP
113 }
114
115
116 BEGIN_MESSAGE_MAP(CShipClassEditorDlg, CDialog)
117         //{{AFX_MSG_MAP(CShipClassEditorDlg)
118                 // NOTE: the ClassWizard will add message map macros here
119         //}}AFX_MSG_MAP
120 END_MESSAGE_MAP()
121
122 /////////////////////////////////////////////////////////////////////////////
123 // CShipClassEditorDlg message handlers