FS2_Open
Open source remastering of the Freespace 2 engine
shipclasseditordlg.cpp
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 "stdafx.h"
13 #include "FRED.h"
14 #include "ShipClassEditorDlg.h"
15 
16 #ifdef _DEBUG
17 #undef THIS_FILE
18 static char THIS_FILE[] = __FILE__;
19 #endif
20 
22 // CShipClassEditorDlg dialog
23 
24 
26  : CDialog(CShipClassEditorDlg::IDD, pParent)
27 {
28  //{{AFX_DATA_INIT(CShipClassEditorDlg)
30  m_ShipClassAIClass = -1;
31  m_ShipClassArmor = _T("");
34  m_ShipClassModel = -1;
35  m_ShipClassEngine = _T("");
36  m_ShipClassExplosion1 = _T("");
37  m_ShipClassExplosion2 = _T("");
38  m_ShipClassIFF = _T("");
39  m_ShipClassManufacturer = _T("");
44  m_ShipClassName = _T("");
45  m_ShipClassPowerPlant = _T("");
46  m_ShipClassScore = 0;
49  m_ShipClassTurretWeapon1 = _T("");
50  m_ShipClassTurretWeapon2 = _T("");
51  m_ShipClassWeaponSpecial = _T("");
52  m_ShipClassWeapon1 = _T("");
53  m_ShipClassWeapon2 = _T("");
54  //}}AFX_DATA_INIT
55 }
56 
57 
58 void CShipClassEditorDlg::DoDataExchange(CDataExchange* pDX)
59 {
60  CDialog::DoDataExchange(pDX);
61  //{{AFX_DATA_MAP(CShipClassEditorDlg)
62  DDX_Control(pDX, IDC_SOUNDS, m_SoundsEditor);
63  DDX_Control(pDX, IDC_SCLASS_WINDOW, m_ShipClassWindow);
64  DDX_Control(pDX, IDC_SCLASS_NEW, m_ShipClassNew);
65  DDX_Control(pDX, IDC_SCLASS_DELETE, m_ShipClassDelete);
66  DDX_Control(pDX, IDC_MODELS, m_ModelsEditor);
67  DDX_Control(pDX, IDC_GOALS, m_GoalsEditor);
69  DDX_CBIndex(pDX, IDC_SCLASS_AI_CLASS, m_ShipClassAIClass);
70  DDX_CBString(pDX, IDC_SCLASS_ARMOR, m_ShipClassArmor);
71  DDX_Check(pDX, IDC_SCLASS_CLOAK, m_ShipClassCloak);
73  DDX_CBIndex(pDX, IDC_SCLASS_3D_OBJECT, m_ShipClassModel);
74  DDX_Text(pDX, IDC_SCLASS_ENGINES, m_ShipClassEngine);
75  DDX_CBString(pDX, IDC_SCLASS_EXPLOSION1, m_ShipClassExplosion1);
76  DDX_CBString(pDX, IDC_SCLASS_EXPLOSION2, m_ShipClassExplosion2);
77  DDX_CBString(pDX, IDC_SCLASS_IFF, m_ShipClassIFF);
83  DDX_CBString(pDX, IDC_SCLASS_NAME, m_ShipClassName);
85  DDX_Text(pDX, IDC_SCLASS_SCORE, m_ShipClassScore);
86  DDX_Text(pDX, IDC_SCLASS_SHIELDS, m_ShipClassShields);
91  DDX_CBString(pDX, IDC_SCLASS_WEAPON1, m_ShipClassWeapon1);
92  DDX_CBString(pDX, IDC_SCLASS_WEAPON2, m_ShipClassWeapon2);
93  //}}AFX_DATA_MAP
94 }
95 
96 
97 BEGIN_MESSAGE_MAP(CShipClassEditorDlg, CDialog)
98  //{{AFX_MSG_MAP(CShipClassEditorDlg)
99  // NOTE: the ClassWizard will add message map macros here
100  //}}AFX_MSG_MAP
101 END_MESSAGE_MAP()
102 
104 // CShipClassEditorDlg message handlers
virtual void DoDataExchange(CDataExchange *pDX)
#define IDC_SCLASS_DEBRIS_MODEL
Definition: resource.h:132
#define IDC_SCLASS_ENGINES
Definition: resource.h:273
#define IDC_SCLASS_MANUFACTURER
Definition: resource.h:469
#define IDC_SCLASS_WEAPON_SPECIAL
Definition: resource.h:467
#define IDC_SCLASS_NEW
Definition: resource.h:462
#define IDC_SCLASS_MAX_BANK
Definition: resource.h:203
#define IDC_SOUNDS
Definition: resource.h:255
#define IDC_SCLASS_WEAPON1
Definition: resource.h:466
CShipClassEditorDlg(CWnd *pParent=NULL)
#define IDC_SCLASS_ARMOR
Definition: resource.h:295
#define IDC_MODELS
Definition: resource.h:464
#define IDC_SCLASS_MAX_SPEED
Definition: resource.h:158
#define IDC_SCLASS_WINDOW
Definition: resource.h:470
#define IDC_SCLASS_MAX_ROLL
Definition: resource.h:232
#define IDC_SCLASS_TURRET_WEAPON1
Definition: resource.h:142
#define IDC_SCLASS_MAX_PITCH
Definition: resource.h:197
#define IDC_SCLASS_AFTERBURNER
Definition: resource.h:195
#define IDC_SCLASS_WEAPON2
Definition: resource.h:465
#define IDC_SCLASS_NAME
Definition: resource.h:455
#define IDC_SCLASS_CLOAK
Definition: resource.h:461
#define IDC_SCLASS_WARPDRIVE
Definition: resource.h:280
#define IDC_SCLASS_DELETE
Definition: resource.h:463
#define IDC_SCLASS_IFF
Definition: resource.h:457
#define IDC_GOALS
Definition: resource.h:259
#define IDC_SCLASS_POWER_PLANT
Definition: resource.h:266
#define IDC_SCLASS_SCORE
Definition: resource.h:248
#define IDC_SCLASS_SHIELDS
Definition: resource.h:188
#define IDC_SCLASS_EXPLOSION1
Definition: resource.h:171
#define FALSE
Definition: pstypes.h:400
#define IDC_SCLASS_EXPLOSION2
Definition: resource.h:174
#define IDC_SCLASS_AI_CLASS
Definition: resource.h:134
#define IDC_SCLASS_3D_OBJECT
Definition: resource.h:459
#define IDC_SCLASS_TURRET_WEAPON2
Definition: resource.h:468