Debian Codegraph @

editor/TerrainSoundDialog.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_TERRAINSOUNDDIALOG_H__699A56A0_C8F9_11D2_A13A_0060089A83BE__INCLUDED_)
20 #define AFX_TERRAINSOUNDDIALOG_H__699A56A0_C8F9_11D2_A13A_0060089A83BE__INCLUDED_
21
22 #if _MSC_VER > 1000
23 #pragma once
24 #endif // _MSC_VER > 1000
25 // TerrainSoundDialog.h : header file
26 //
27
28 #include "game.h"
29 #include "SoundListCombo.h"
30
31 /////////////////////////////////////////////////////////////////////////////
32 // CTerrainSoundDialog dialog
33
34 class CTerrainSoundDialog : public CDialog {
35 // Construction
36 public:
37 CTerrainSoundDialog(CWnd *pParent = NULL); // standard constructor
38
39 // Dialog Data
40 //{{AFX_DATA(CTerrainSoundDialog)
41 enum { IDD = IDD_TERRAIN_SOUND_DIALOG };
42 CSoundListCombo m_sound_combo;
43 int m_high_alt;
44 int m_low_alt;
45 float m_high_volume;
46 float m_low_volume;
47 //}}AFX_DATA
48
49 // Overrides
50 // ClassWizard generated virtual function overrides
51 //{{AFX_VIRTUAL(CTerrainSoundDialog)
52 protected:
53 virtual void DoDataExchange(CDataExchange *pDX); // DDX/DDV support
54 //}}AFX_VIRTUAL
55
56 // Implementation
57 private:
58 void UpdateDialog();
59 void EnableDisableAll(int flag);
60 void CopyToControls();
61 void CopyFromControls();
62
63 int m_current;
64 terrain_sound_band m_bands[NUM_TERRAIN_SOUND_BANDS];
65
66 protected:
67 // Generated message map functions
68 //{{AFX_MSG(CTerrainSoundDialog)
69 afx_msg void OnTerrainSoundNext();
70 afx_msg void OnTerrainSoundPrev();
71 virtual void OnOK();
72 virtual BOOL OnInitDialog();
73 afx_msg void OnSelchangeTerrainSoundCombo();
74 afx_msg void OnKillfocusTerrainSoundHighAlt();
75 afx_msg void OnKillfocusTerrainSoundHighVolume();
76 afx_msg void OnKillfocusTerrainSoundLowAlt();
77 afx_msg void OnKillfocusTerrainSoundLowVolume();
78 //}}AFX_MSG
79 DECLARE_MESSAGE_MAP()
80 };
81
82 //{{AFX_INSERT_LOCATION}}
83 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
84
85 #endif // !defined(AFX_TERRAINSOUNDDIALOG_H__699A56A0_C8F9_11D2_A13A_0060089A83BE__INCLUDED_)