doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
DialogSound.h
Go to the documentation of this file.
1 /*
2 ===========================================================================
3 
4 Doom 3 GPL Source Code
5 Copyright (C) 1999-2011 id Software LLC, a ZeniMax Media company.
6 
7 This file is part of the Doom 3 GPL Source Code (?Doom 3 Source Code?).
8 
9 Doom 3 Source Code is free software: you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation, either version 3 of the License, or
12 (at your option) any later version.
13 
14 Doom 3 Source Code is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
18 
19 You should have received a copy of the GNU General Public License
20 along with Doom 3 Source Code. If not, see <http://www.gnu.org/licenses/>.
21 
22 In addition, the Doom 3 Source Code is also subject to certain additional terms. You should have received a copy of these additional terms immediately following the terms and conditions of the GNU General Public License which accompanied the Doom 3 Source Code. If not, please request a copy in writing from id Software at the address below.
23 
24 If you have questions concerning this license or the applicable additional terms, you may contact in writing id Software LLC, c/o ZeniMax Media Inc., Suite 120, Rockville, Maryland 20850 USA.
25 
26 ===========================================================================
27 */
28 
29 #ifndef __DIALOGSOUND_H__
30 #define __DIALOGSOUND_H__
31 
32 #if _MSC_VER > 1000
33 #pragma once
34 #endif // _MSC_VER > 1000
35 
37 // CDialogSound dialog
38 
39 class CDialogSound : public CDialog {
40 public:
41  CDialogSound(CWnd* pParent = NULL); // standard constructor\
42 
43  void Set( const idDict *source );
44  void Get( idDict *dest );
45 
47 
48  //{{AFX_VIRTUAL(CDialogSound)
49  virtual BOOL OnInitDialog();
50  virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
51  //}}AFX_VIRTUAL
52 
53 protected:
54  //{{AFX_MSG(CDialogSound)
55  afx_msg void OnActivate(UINT nState, CWnd* pWndOther, BOOL bMinimized);
56  afx_msg void OnMove( int x, int y );
57  afx_msg void OnDestroy();
58  afx_msg void OnBtnSavemap();
59  afx_msg void OnBtnSwitchtogame();
60  afx_msg void OnBtnApply();
61  afx_msg void OnChangeEditVolume();
62  afx_msg void OnBtnRefresh();
63  afx_msg void OnBtnPlaysound();
64  afx_msg void OnDblclkTreeSounds(NMHDR* pNMHDR, LRESULT* pResult);
65  afx_msg void OnSelchangedTreeSounds(NMHDR* pNMHDR, LRESULT* pResult);
66  afx_msg void OnCheckPlay();
67  afx_msg void OnBtnEdit();
68  afx_msg void OnBtnDrop();
69  afx_msg void OnBtnGroup();
70  afx_msg void OnBtnSavemapas();
71  afx_msg void OnBtnYup();
72  afx_msg void OnBtnYdn();
73  afx_msg void OnBtnXdn();
74  afx_msg void OnBtnXup();
75  afx_msg void OnBtnZup();
76  afx_msg void OnBtnZdn();
77  afx_msg void OnBtnTrigger();
78  afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
79  afx_msg void OnCheckGrouponly();
80  afx_msg void OnSelchangeComboGroups();
81  afx_msg void OnSelchangeComboSpeakers();
82  afx_msg void OnBtnDown();
83  afx_msg void OnBtnUp();
84  afx_msg void OnBtnRefreshspeakers();
85  afx_msg void OnBtnRefreshwave();
86  //}}AFX_MSG
87 
88  DECLARE_MESSAGE_MAP()
89 
90 private:
91  //{{AFX_DATA(CDialogSound)
92  enum { IDD = IDD_DIALOG_SOUND };
93  CComboBox comboSpeakers;
94  CComboBox comboGroups;
95  CEdit editVolume;
96  CTreeCtrl treeSounds;
97  CString strName;
98  float fVolume;
99  float fMax;
100  float fMin;
101  CString strShader;
104  int bOmni;
105  CString strGroup;
108  float leadThrough;
110  float random;
111  float wait;
112  float shakes;
115  //}}AFX_DATA
116 
117  CString playSound;
119  HTREEITEM inUseTree;
120 private:
121  void AddSounds(bool rootItem);
122  HTREEITEM AddStrList(const char *root, const idStrList &list, int id);
123  HTREEITEM InsertTreeItem(const char *name, const char *fullName, HTREEITEM item);
124  idStr RebuildItemName(const char *root, HTREEITEM item);
125  void UpdateSelectedOrigin(float x, float y, float z);
126  void AddGroups();
127  void AddSpeakers();
128  void AddInUseSounds();
129  void ApplyChanges( bool volumeOnly = false , bool updateInUseTree = true );
130  void SetWaveSize( const char *p = NULL );
131  void SetVolume( float f );
132  virtual BOOL PreTranslateMessage(MSG* pMsg);
133 };
134 
135 //{{AFX_INSERT_LOCATION}}
136 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
137 
138 #endif /* !__DIALOGSOUND_H__ */
afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar *pScrollBar)
void Set(const idDict *source)
HTREEITEM AddStrList(const char *root, const idStrList &list, int id)
virtual void DoDataExchange(CDataExchange *pDX)
Definition: DialogSound.cpp:84
afx_msg void OnDestroy()
afx_msg void OnSelchangedTreeSounds(NMHDR *pNMHDR, LRESULT *pResult)
afx_msg void OnActivate(UINT nState, CWnd *pWndOther, BOOL bMinimized)
afx_msg void OnBtnXup()
CONST PIXELFORMATDESCRIPTOR UINT
Definition: win_qgl.cpp:47
afx_msg void OnBtnSwitchtogame()
#define private
Definition: TypeInfo.cpp:30
void SetVolume(float f)
void UpdateSelectedOrigin(float x, float y, float z)
GLenum GLint GLint y
Definition: glext.h:2849
virtual BOOL OnInitDialog()
afx_msg void OnCheckPlay()
afx_msg void OnBtnYup()
afx_msg void OnBtnRefreshwave()
void Get(idDict *dest)
afx_msg void OnBtnSavemap()
idStr RebuildItemName(const char *root, HTREEITEM item)
GLenum GLint x
Definition: glext.h:2849
afx_msg void OnCheckGrouponly()
#define BOOL
Definition: mprintf.c:71
afx_msg void OnBtnSavemapas()
afx_msg void OnBtnUp()
GLsizei GLsizei GLcharARB * source
Definition: glext.h:3633
afx_msg void OnBtnRefresh()
CEdit editVolume
Definition: DialogSound.h:95
void AddGroups()
idHashTable< HTREEITEM > quickTree
Definition: DialogSound.h:118
afx_msg void OnSelchangeComboGroups()
Definition: Dict.h:65
#define NULL
Definition: Lib.h:88
afx_msg void OnBtnZup()
afx_msg void OnBtnPlaysound()
afx_msg void OnBtnEdit()
float fVolume
Definition: DialogSound.h:98
void AddInUseSounds()
CString playSound
Definition: DialogSound.h:117
CString strShader
Definition: DialogSound.h:101
void ApplyChanges(bool volumeOnly=false, bool updateInUseTree=true)
HTREEITEM inUseTree
Definition: DialogSound.h:119
afx_msg void OnBtnRefreshspeakers()
afx_msg void OnBtnYdn()
void AddSpeakers()
afx_msg void OnBtnApply()
CDialogSound(CWnd *pParent=NULL)
Definition: DialogSound.cpp:57
afx_msg void OnBtnXdn()
CComboBox comboSpeakers
Definition: DialogSound.h:93
afx_msg void OnBtnTrigger()
void SetWaveSize(const char *p=NULL)
afx_msg void OnBtnZdn()
HTREEITEM InsertTreeItem(const char *name, const char *fullName, HTREEITEM item)
tuple f
Definition: idal.py:89
CComboBox comboGroups
Definition: DialogSound.h:94
const GLcharARB * name
Definition: glext.h:3629
Definition: Str.h:116
void AddSounds(bool rootItem)
afx_msg void OnDblclkTreeSounds(NMHDR *pNMHDR, LRESULT *pResult)
afx_msg void OnBtnGroup()
afx_msg void OnMove(int x, int y)
afx_msg void OnChangeEditVolume()
GLfloat GLfloat p
Definition: glext.h:4674
virtual BOOL PreTranslateMessage(MSG *pMsg)
GLdouble GLdouble z
Definition: glext.h:3067
afx_msg void OnBtnDrop()
CString strName
Definition: DialogSound.h:97
CTreeCtrl treeSounds
Definition: DialogSound.h:96
#define IDD_DIALOG_SOUND
float leadThrough
Definition: DialogSound.h:108
CString strGroup
Definition: DialogSound.h:105
afx_msg void OnBtnDown()
afx_msg void OnSelchangeComboSpeakers()