]> icculus.org git repositories - taylor/freespace2.git/blob - src/fred2/shipclasseditordlg.cpp
fix issue with looping audio streams
[taylor/freespace2.git] / src / fred2 / shipclasseditordlg.cpp
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
6  * the source.
7  */
8
9 /*
10  * $Logfile: /Freespace2/code/FRED2/ShipClassEditorDlg.cpp $
11  * $Revision$
12  * $Date$
13  * $Author$
14  *
15  * Ship class editor dialog handling code
16  *
17  * $Log$
18  * Revision 1.3  2002/06/09 04:41:17  relnev
19  * added copyright header
20  *
21  * Revision 1.2  2002/05/07 03:16:44  theoddone33
22  * The Great Newline Fix
23  *
24  * Revision 1.1.1.1  2002/05/03 03:28:08  root
25  * Initial import.
26  *
27  * 
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.
32  * 
33  * 1     10/07/98 3:01p Dave
34  * 
35  * 1     10/07/98 3:00p Dave
36  * 
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.
40  *
41  * $NoKeywords: $
42  */
43
44 #include "stdafx.h"
45 #include "fred.h"
46 #include "shipclasseditordlg.h"
47
48 #ifdef _DEBUG
49 #define new DEBUG_NEW
50 #undef THIS_FILE
51 static char THIS_FILE[] = __FILE__;
52 #endif
53
54 /////////////////////////////////////////////////////////////////////////////
55 // CShipClassEditorDlg dialog
56
57
58 CShipClassEditorDlg::CShipClassEditorDlg(CWnd* pParent /*=NULL*/)
59         : CDialog(CShipClassEditorDlg::IDD, pParent)
60 {
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("");
79         m_ShipClassScore = 0;
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("");
87         //}}AFX_DATA_INIT
88 }
89
90
91 void CShipClassEditorDlg::DoDataExchange(CDataExchange* pDX)
92 {
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);
126         //}}AFX_DATA_MAP
127 }
128
129
130 BEGIN_MESSAGE_MAP(CShipClassEditorDlg, CDialog)
131         //{{AFX_MSG_MAP(CShipClassEditorDlg)
132                 // NOTE: the ClassWizard will add message map macros here
133         //}}AFX_MSG_MAP
134 END_MESSAGE_MAP()
135
136 /////////////////////////////////////////////////////////////////////////////
137 // CShipClassEditorDlg message handlers
138