1 // NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
2 // Copyright (C) 2010 Winch Gate Property Limited
4 // This source file has been modified by the following contributors:
5 // Copyright (C) 2019 Jan BOON (Kaetemi) <jan.boon@kaetemi.be>
7 // This program is free software: you can redistribute it and/or modify
8 // it under the terms of the GNU Affero General Public License as
9 // published by the Free Software Foundation, either version 3 of the
10 // License, or (at your option) any later version.
12 // This program is distributed in the hope that it will be useful,
13 // but WITHOUT ANY WARRANTY; without even the implied warranty of
14 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 // GNU Affero General Public License for more details.
17 // You should have received a copy of the GNU Affero General Public License
18 // along with this program. If not, see <http://www.gnu.org/licenses/>.
21 #if !defined(AFX_PICK_SOUND_H__14638414_B951_439C_A087_5468A8CDFCE1__INCLUDED_)
22 #define AFX_PICK_SOUND_H__14638414_B951_439C_A087_5468A8CDFCE1__INCLUDED_
26 #endif // _MSC_VER > 1000
27 // pick_sound.h : header file
29 #include "nel/misc/string_mapper.h"
39 /////////////////////////////////////////////////////////////////////////////
42 class CPickSound
: public CDialog
46 typedef std::vector
<NLMISC::TStringId
> TNameVect
;
47 CPickSound(const TNameVect
&names
, CWnd
* pParent
= NULL
); // standard constructor
50 const NLMISC::TStringId
&getName(void) const { return _CurrName
; }
53 //{{AFX_DATA(CPickSound)
54 enum { IDD
= IDD_PICK_SOUND
};
60 // ClassWizard generated virtual function overrides
61 //{{AFX_VIRTUAL(CPickSound)
63 virtual void DoDataExchange(CDataExchange
* pDX
); // DDX/DDV support
69 NLMISC::TStringId _CurrName
;
73 NLMISC::CVector _BackupVel
;
75 NLSOUND::USource
*_CurrSource
;
77 // Generated message map functions
78 //{{AFX_MSG(CPickSound)
79 virtual BOOL
OnInitDialog();
80 afx_msg
void OnSelchange();
81 afx_msg
void OnPlaySound();
82 afx_msg
void OnTimer(UINT_PTR nIDEvent
);
83 afx_msg
void OnDestroy();
84 afx_msg
void OnDblclkList();
85 afx_msg
void OnClose();
88 void stopCurrSource();
91 //{{AFX_INSERT_LOCATION}}
92 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
94 #endif // !defined(AFX_PICK_SOUND_H__14638414_B951_439C_A087_5468A8CDFCE1__INCLUDED_)