Added aqua_speed for rite geo 50 tryker
[ryzomcore.git] / nel / tools / 3d / object_viewer / pick_sound.h
blob486f1e090e9a39ca0ef4c3ab9d44a744e191fe61
1 // NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
2 // Copyright (C) 2010 Winch Gate Property Limited
3 //
4 // This source file has been modified by the following contributors:
5 // Copyright (C) 2019 Jan BOON (Kaetemi) <jan.boon@kaetemi.be>
6 //
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_
24 #if _MSC_VER > 1000
25 #pragma once
26 #endif // _MSC_VER > 1000
27 // pick_sound.h : header file
29 #include "nel/misc/string_mapper.h"
30 #include <vector>
31 #include <string>
34 namespace NLSOUND
36 class USource;
39 /////////////////////////////////////////////////////////////////////////////
40 // CPickSound dialog
42 class CPickSound : public CDialog
44 // Construction
45 public:
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; }
52 // Dialog Data
53 //{{AFX_DATA(CPickSound)
54 enum { IDD = IDD_PICK_SOUND };
55 CListBox m_NameList;
56 //}}AFX_DATA
59 // Overrides
60 // ClassWizard generated virtual function overrides
61 //{{AFX_VIRTUAL(CPickSound)
62 protected:
63 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
64 //}}AFX_VIRTUAL
66 // Implementation
67 protected:
68 TNameVect _Names;
69 NLMISC::TStringId _CurrName;
71 UINT_PTR _Timer;
73 NLMISC::CVector _BackupVel;
74 float _BackupGain;
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();
86 //}}AFX_MSG
87 DECLARE_MESSAGE_MAP()
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_)