| 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_SOUNDSOURCEDIALOG_H__42188B21_C97F_11D2_A13A_0060089A83BE__INCLUDED_) |
| 20 | #define AFX_SOUNDSOURCEDIALOG_H__42188B21_C97F_11D2_A13A_0060089A83BE__INCLUDED_ |
| 21 | |
| 22 | #if _MSC_VER > 1000 |
| 23 | #pragma once |
| 24 | #endif // _MSC_VER > 1000 |
| 25 | // SoundSourceDialog.h : header file |
| 26 | // |
| 27 | |
| 28 | #include "SoundListCombo.h" |
| 29 | #include "object.h" |
| 30 | |
| 31 | ///////////////////////////////////////////////////////////////////////////// |
| 32 | // CSoundSourceDialog dialog |
| 33 | |
| 34 | class CSoundSourceDialog : public CDialog { |
| 35 | // Construction |
| 36 | public: |
| 37 | CSoundSourceDialog(soundsource_info_s *data, CWnd *pParent = NULL); // standard constructor |
| 38 | |
| 39 | // Dialog Data |
| 40 | //{{AFX_DATA(CSoundSourceDialog) |
| 41 | enum { IDD = IDD_SOUNDSOURCE_DIALOG }; |
| 42 | CSoundListCombo m_sound_combo; |
| 43 | float m_volume; |
| 44 | //}}AFX_DATA |
| 45 | |
| 46 | // Overrides |
| 47 | // ClassWizard generated virtual function overrides |
| 48 | //{{AFX_VIRTUAL(CSoundSourceDialog) |
| 49 | protected: |
| 50 | virtual void DoDataExchange(CDataExchange *pDX); // DDX/DDV support |
| 51 | //}}AFX_VIRTUAL |
| 52 | |
| 53 | // Implementation |
| 54 | private: |
| 55 | soundsource_info_s *m_data_ptr; |
| 56 | |
| 57 | protected: |
| 58 | // Generated message map functions |
| 59 | //{{AFX_MSG(CSoundSourceDialog) |
| 60 | virtual void OnOK(); |
| 61 | virtual BOOL OnInitDialog(); |
| 62 | afx_msg void OnSelect(); |
| 63 | //}}AFX_MSG |
| 64 | DECLARE_MESSAGE_MAP() |
| 65 | }; |
| 66 | |
| 67 | //{{AFX_INSERT_LOCATION}} |
| 68 | // Microsoft Visual C++ will insert additional declarations immediately before the previous line. |
| 69 | |
| 70 | #endif // !defined(AFX_SOUNDSOURCEDIALOG_H__42188B21_C97F_11D2_A13A_0060089A83BE__INCLUDED_) |