Debian Codegraph @

editor/TerrainDialog.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 // TerrainDialog.h : header file
20 //
21 #include "keypaddialog.h"
22
23 #define CC_MODE_SKY 0
24 #define CC_MODE_HORIZON 1
25 #define CC_MODE_FOG 2
26 #define CC_MODE_SAT 3
27
28 /////////////////////////////////////////////////////////////////////////////
29 // CTerrainDialog dialog
30
31 class CTerrainDialog : public CKeypadDialog {
32 // Construction
33 public:
34 CTerrainDialog(CWnd *pParent = NULL); // standard constructor
35 virtual void RunKeypadFunction(int code);
36 void SetCurrentMoon(int);
37
38 void MoveSat(int, int);
39
40 // Dialog Data
41 //{{AFX_DATA(CTerrainDialog)
42 enum { IDD = IDD_TERRAINKEYPAD };
43 // NOTE: the ClassWizard will add data members here
44 //}}AFX_DATA
45
46 // Overrides
47 // ClassWizard generated virtual function overrides
48 //{{AFX_VIRTUAL(CTerrainDialog)
49 protected:
50 virtual void DoDataExchange(CDataExchange *pDX); // DDX/DDV support
51 //}}AFX_VIRTUAL
52
53 // Implementation
54
55 private:
56 int Current_satellite;
57 int cc_mode;
58 void UpdateDialog();
59 void DrawSwatch(int, int, int, int);
60
61 protected:
62 // Generated message map functions
63 //{{AFX_MSG(CTerrainDialog)
64 afx_msg void OnSize(UINT nType, int cx, int cy);
65 afx_msg void OnTerrpadMoveUp();
66 afx_msg void OnTerrpadMoveDown();
67 afx_msg void OnTerrpadImport();
68 afx_msg void OnTerrpadRenormalize();
69 afx_msg void OnTerrpadRaise10();
70 afx_msg void OnTerrpadLower10();
71 afx_msg void OnSkyTexture();
72 afx_msg void OnTerrpadSelectNone();
73 afx_msg void OnTerrpadRotTexture();
74 afx_msg void OnSkyNearer();
75 afx_msg void OnSkyFarther();
76 afx_msg void OnStarsCheck();
77 afx_msg void OnFastTerrainCheck();
78 afx_msg void OnTerrpadFillArea();
79 afx_msg void OnTerrpadRedoTopmap();
80 afx_msg void OnTerrpadMakeMax();
81 afx_msg void OnTerrpadMakeMin();
82 afx_msg void OnTerrpadMakeZero();
83 afx_msg void OnTerrpadPyramid();
84 afx_msg void OnTerrpadHill();
85 afx_msg void OnTerrpadPancakes();
86 afx_msg void OnTerrMoveMoon();
87 afx_msg void OnTerrRandomizeSky();
88 afx_msg void OnPaint();
89 afx_msg void OnTerrMoreMoons();
90 afx_msg void OnTerrLessMoons();
91 afx_msg void OnTerrNextMoon();
92 afx_msg void OnTerrPrevMoon();
93 afx_msg void OnShowTerrain();
94 afx_msg void OnFlatShadeTerrainCheck();
95 afx_msg BOOL OnHelpInfo(HELPINFO *pHelpInfo);
96 afx_msg void OnTerrSelectAll();
97 afx_msg void OnTerrain2d();
98 afx_msg void OnTextureSky();
99 afx_msg void OnKillfocusSkyRedEdit();
100 afx_msg void OnKillfocusSkyGreenEdit();
101 afx_msg void OnKillfocusSkyBlueEdit();
102 afx_msg void OnNoLodEngine();
103 afx_msg void OnKillfocusFogDistanceEdit();
104 afx_msg void OnKillfocusPixelErrorEdit();
105 afx_msg void OnTerrpadSelectrange();
106 afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar *pScrollBar);
107 afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar *pScrollBar);
108 afx_msg void OnSkyRadio();
109 afx_msg void OnHorizonRadio();
110 afx_msg void OnFogRadio();
111 afx_msg void OnToggleVisibility();
112 afx_msg void OnShowInvisible();
113 afx_msg void OnTerrMoveMoonAway();
114 afx_msg void OnMoveSatUp();
115 afx_msg void OnMoveSatDown();
116 afx_msg void OnMoveSatLeft();
117 afx_msg void OnMoveSatRight();
118 afx_msg void OnSatelliteCheck();
119 afx_msg void OnSmoothTerrain();
120 afx_msg void OnUseFog();
121 afx_msg void OnUseHalo();
122 afx_msg void OnUseAtmosphere();
123 afx_msg void OnDropTerrain();
124 afx_msg void OnSaveAsPcx();
125 afx_msg void OnNoExtRoomsObjs();
126 afx_msg void OnTerrainOcclusion();
127 afx_msg void OnSatelliteRadio();
128 afx_msg void OnForceVisible();
129 afx_msg void OnKillfocusDamagePerSecEdit();
130 afx_msg void OnKillfocusFogScalarEdit();
131 afx_msg void OnRotateStars();
132 afx_msg void OnRotateSky();
133 afx_msg void OnKillfocusRotateSpeedEdit();
134 afx_msg void OnTileMore();
135 afx_msg void OnTileLess();
136 afx_msg void OnTerrSound();
137 //}}AFX_MSG
138 DECLARE_MESSAGE_MAP()
139 };
140
141 // Makes a copy of current terrain into an undo buffer
142 void PushTerrainUndo();
143
144 // Copies the undo buffer onto the terrain
145 void PopTerrainUndo();