Debian Codegraph @

editor/WorldTexturesDialog.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 // WorldTexturesDialog.h : header file
20 //
21
22 #include "SoundListCombo.h"
23 #include "gr.h"
24
25 /////////////////////////////////////////////////////////////////////////////
26 // CWorldTexturesDialog dialog
27
28 class CWorldTexturesDialog : public CDialog {
29 // Construction
30 public:
31 CWorldTexturesDialog(CWnd *pParent = NULL); // standard constructor
32
33 // Dialog Data
34 //{{AFX_DATA(CWorldTexturesDialog)
35 enum { IDD = IDD_WORLDTEXTURES };
36 CSoundListCombo m_ambient_sound_combo;
37 //}}AFX_DATA
38
39 // Overrides
40 // ClassWizard generated virtual function overrides
41 //{{AFX_VIRTUAL(CWorldTexturesDialog)
42 public:
43 virtual BOOL DestroyWindow();
44
45 protected:
46 virtual void DoDataExchange(CDataExchange *pDX); // DDX/DDV support
47 //}}AFX_VIRTUAL
48
49 // Implementation
50 public:
51 // Generated message map functions
52 //{{AFX_MSG(CWorldTexturesDialog)
53 afx_msg void OnWtexdlgAddnew();
54 afx_msg void OnPaint();
55 afx_msg void OnNext();
56 afx_msg void OnPrevious();
57 afx_msg void OnSelendokTexList();
58 afx_msg void OnLock();
59 afx_msg void OnCheckin();
60 afx_msg void OnRcsStatus();
61 afx_msg void OnDelete();
62 afx_msg void OnVolatile();
63 afx_msg void OnWater();
64 afx_msg void OnForcefield();
65 afx_msg void OnCheckAnimate();
66 afx_msg void OnLoadBitmap();
67 afx_msg void OnCheckDestroy();
68 afx_msg void OnKillfocusReflect();
69 afx_msg void OnKillfocusSlideu();
70 afx_msg void OnKillfocusSlidev();
71 afx_msg void OnKillfocusDamage();
72 afx_msg void OnKillfocusTexNum();
73 virtual BOOL OnInitDialog();
74 afx_msg void OnTimer(UINT nIDEvent);
75 afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
76 afx_msg void OnTextureCurrent();
77 afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar *pScrollBar);
78 afx_msg void OnMineTexture();
79 afx_msg void OnObjectTexture();
80 afx_msg void OnTerrainTexture();
81 afx_msg void OnKillfocusBlueLighting();
82 afx_msg void OnKillfocusGreenLighting();
83 afx_msg void OnKillfocusRedLighting();
84 afx_msg BOOL OnHelpInfo(HELPINFO *pHelpInfo);
85 afx_msg void OnAddNewSmall();
86 afx_msg void OnAddNewTiny();
87 afx_msg void OnKillfocusAlphaEdit();
88 afx_msg void OnTextureFlyThruCheck();
89 afx_msg void OnPingPong();
90 afx_msg void OnTextureChangeName();
91 afx_msg void OnSelendokDestroyPulldown();
92 afx_msg void OnSaturate();
93 afx_msg void OnOverride();
94 afx_msg void OnSaveAsTga();
95 afx_msg void OnConvertToNormal();
96 afx_msg void OnConvertToSmall();
97 afx_msg void OnConvertToTiny();
98 afx_msg void OnKillfocusSpeedEdit();
99 afx_msg void OnImportBump();
100 afx_msg void OnGenerateOmni();
101 afx_msg void OnSrcBump();
102 afx_msg void OnBump1();
103 afx_msg void OnBump2();
104 afx_msg void OnBump3();
105 afx_msg void OnBump4();
106 afx_msg void OnMetalCheck();
107 afx_msg void OnMarbleCheck();
108 afx_msg void OnPlasticCheck();
109 afx_msg void OnEffectTexture();
110 afx_msg void OnHudCockpitTexture();
111 afx_msg void OnLightTexture();
112 afx_msg void OnProceduralCheck();
113 afx_msg void OnProceduralButton();
114 afx_msg void OnWaterProceduralCheck();
115 afx_msg void OnForceLightmaps();
116 afx_msg void OnCoronaA();
117 afx_msg void OnCoronaB();
118 afx_msg void OnCoronaC();
119 afx_msg void OnCoronaD();
120 afx_msg void OnMultichecktex();
121 afx_msg void OnImport4444();
122 afx_msg void OnSaturateLightmap();
123 afx_msg void OnAddNewHuge();
124 afx_msg void OnLavaCheckbox();
125 afx_msg void OnRubbleCheckbox();
126 afx_msg void OnSelendokTextureAmbientSoundPulldown();
127 afx_msg void OnKillfocusTextureAmbientSoundVolume();
128 afx_msg void OnSmoothSpecCheck();
129 afx_msg void OnAmbientSoundSelect();
130 afx_msg void OnCheckBreakable();
131 //}}AFX_MSG
132 DECLARE_MESSAGE_MAP()
133
134 private:
135 void UpdateDialog(void);
136 void UpdateTextureViews(int);
137 void SaveTexturesOnClose(void);
138 void TextureListDown(int rows);
139 void TextureListUp(int rows);
140 int LoadITLFile(char *filename, int type);
141 void DrawSwatch(int handle, float r, float g, float b);
142 void ChangeSize(int w, int h);
143
144 private:
145 grHardwareSurface m_TextureSurf;
146 int m_TexStart; // Start of texture list.
147 int m_TexListPos; // Current position of textture list.
148 int m_TexPageLen; // length of one view of textures in listbox
149 int m_bumpmap;
150 bool m_RedrawListbox;
151 int m_CheckX, m_CheckY, m_CheckForTextureList;
152 };