Debian Codegraph @

editor/WorldObjectsGenericDialog.h

raw symbols SCIP
1 /*
2 * Descent 3
3 * Copyright (C) 2024 Parallax Software
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19 #if !defined(AFX_WORLDOBJECTSGENERICDIALOG_H__631E2882_0E6D_11D1_86CC_004033312F7C__INCLUDED_)
20 #define AFX_WORLDOBJECTSGENERICDIALOG_H__631E2882_0E6D_11D1_86CC_004033312F7C__INCLUDED_
21
22 #if _MSC_VER >= 1000
23 #pragma once
24 #endif // _MSC_VER >= 1000
25 // WorldObjectsGenericDialog.h : header file
26 //
27
28 #include "gr.h"
29 #include "SoundListCombo.h"
30
31 /////////////////////////////////////////////////////////////////////////////
32 // CWorldObjectsGenericDialog dialog
33
34 class CWorldObjectsGenericDialog : public CDialog {
35 // Construction
36 public:
37 CWorldObjectsGenericDialog(CWnd *pParent = NULL); // standard constructor
38
39 // Dialog Data
40 //{{AFX_DATA(CWorldObjectsGenericDialog)
41 enum { IDD = IDD_WORLDOBJECTSGENERIC };
42 CSoundListCombo m_ambient_sound_combo;
43 CSoundListCombo m_explosion_sound_combo;
44 CString m_type_name;
45 int m_current;
46 CString m_sInvenDescription;
47 CString m_sInvenIconName;
48 //}}AFX_DATA
49
50 int m_type;
51
52 // Overrides
53 // ClassWizard generated virtual function overrides
54 //{{AFX_VIRTUAL(CWorldObjectsGenericDialog)
55 public:
56 virtual BOOL DestroyWindow();
57
58 protected:
59 virtual void DoDataExchange(CDataExchange *pDX); // DDX/DDV support
60 //}}AFX_VIRTUAL
61
62 private:
63 void UpdateDialog(void);
64 void SaveGenericsOnClose();
65 void EnableDisableAll(bool flag);
66 void SaveObjectsOnClose(void);
67 void UpdateObjectView(void);
68 bool IsLocked(int n);
69 int CountLockedItems(void);
70 int GetTextureUsageForPolymodel(int);
71
72 grHardwareSurface m_ObjectSurf;
73 int m_locked_count;
74 int m_lod;
75
76 // Implementation
77 protected:
78 // Generated message map functions
79 //{{AFX_MSG(CWorldObjectsGenericDialog)
80 virtual BOOL OnInitDialog();
81 afx_msg void OnGenericEditAI();
82 afx_msg void OnGenericEditPhysics();
83 afx_msg void OnGenericUsesAI();
84 afx_msg void OnGenericUsesPhysics();
85 afx_msg void OnGenericAddNew();
86 afx_msg void OnGenericCheckedOut();
87 afx_msg void OnGenericCheckIn();
88 afx_msg void OnGenericDefineAnimStates();
89 afx_msg void OnGenericDelete();
90 afx_msg void OnGenericLock();
91 afx_msg void OnGenericNext();
92 afx_msg void OnGenericPrev();
93 afx_msg void OnGenericChangeModel();
94 afx_msg void OnGenericChangeName();
95 afx_msg void OnTimer(UINT nIDEvent);
96 afx_msg void OnSelendokGenericNamePulldown();
97 afx_msg void OnKillfocusGenericSizeEdit();
98 afx_msg void OnGenericCopy();
99 afx_msg void OnGenericPaste();
100 afx_msg void OnKillfocusGenericScriptIDEdit();
101 afx_msg void OnGenericUndoLock();
102 afx_msg void OnGenericDestroyable();
103 afx_msg void OnKillfocusGenericHitpointEdit();
104 afx_msg void OnDestroy();
105 afx_msg void OnGenericWeaponInfoButton();
106 afx_msg void OnGenericLightButton();
107 afx_msg void OnDefaultRadiusButton();
108 afx_msg void OnSelScript();
109 afx_msg void OnGenericConcussiveCheck();
110 afx_msg void OnKillfocusGenericImpactDamageEdit();
111 afx_msg void OnKillfocusGenericImpactSizeEdit();
112 afx_msg void OnNolod();
113 afx_msg void OnHiresRadio();
114 afx_msg void OnMedresRadio();
115 afx_msg void OnLoresRadio();
116 afx_msg void OnKillfocusGenericImpactTimeEdit();
117 afx_msg void OnSelendokGenericExplosionSoundCombo();
118 afx_msg void OnSelendokGenericAmbientSoundCombo();
119 afx_msg void OnKillfocusGenericInvenDescription();
120 afx_msg void OnKillfocusGenericInvenIconname();
121 afx_msg void OnOverride();
122 afx_msg void OnGenericInvenSelectable();
123 afx_msg void OnGenericInvenNonuseable();
124 afx_msg void OnKillfocusLodDistanceEdit();
125 afx_msg void OnInvtypeGame();
126 afx_msg void OnInvtypeMission();
127 afx_msg void OnInvenNoremove();
128 afx_msg void OnInvenViswhenused();
129 afx_msg void OnSelendokDeathPowerup1Pulldown();
130 afx_msg void OnKillfocusDeathPowerup1NumEdit();
131 afx_msg void OnKillfocusDeathPowerup1PercentEdit();
132 afx_msg void OnKillfocusDeathPowerup2NumEdit();
133 afx_msg void OnKillfocusDeathPowerup2PercentEdit();
134 afx_msg void OnSelendokDeathPowerup2Pulldown();
135 afx_msg void OnDeathPowerupUse2IfHave1Check();
136 afx_msg void OnGenericDeathSpew2IfZero1();
137 afx_msg void OnKillfocusScriptname();
138 afx_msg void OnCompilemodule();
139 afx_msg void OnKillfocusScriptOverride();
140 afx_msg void OnGenericAiScriptedDeath();
141 afx_msg void OnKillfocusRespawnScalarEdit();
142 afx_msg void OnGenericDeaths();
143 afx_msg void OnKillfocusGenericScoreEdit();
144 afx_msg void OnKillfocusGenericAmmoEdit();
145 afx_msg void OnObjCeilingCheck();
146 afx_msg void OnObjectFlyThroughRenderedPortals();
147 afx_msg void OnNscButton();
148 afx_msg void OnDsmpbdCheck();
149 afx_msg void OnGenericAmbient();
150 //}}AFX_MSG
151 DECLARE_MESSAGE_MAP()
152 };
153
154 //{{AFX_INSERT_LOCATION}}
155 // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
156
157 #endif // !defined(AFX_WORLDOBJECTSGENERICDIALOG_H__631E2882_0E6D_11D1_86CC_004033312F7C__INCLUDED_)