doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Protected Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
CDialogSound Class Reference

#include <DialogSound.h>

Inheritance diagram for CDialogSound:

Public Types

enum  {
  NONE, SOUNDS, SOUNDPARENT, WAVES,
  WAVEDIR, INUSESOUNDS
}
 

Public Member Functions

 CDialogSound (CWnd *pParent=NULL)
 
void Set (const idDict *source)
 
void Get (idDict *dest)
 
virtual BOOL OnInitDialog ()
 
virtual void DoDataExchange (CDataExchange *pDX)
 

Protected Member Functions

afx_msg void OnActivate (UINT nState, CWnd *pWndOther, BOOL bMinimized)
 
afx_msg void OnMove (int x, int y)
 
afx_msg void OnDestroy ()
 
afx_msg void OnBtnSavemap ()
 
afx_msg void OnBtnSwitchtogame ()
 
afx_msg void OnBtnApply ()
 
afx_msg void OnChangeEditVolume ()
 
afx_msg void OnBtnRefresh ()
 
afx_msg void OnBtnPlaysound ()
 
afx_msg void OnDblclkTreeSounds (NMHDR *pNMHDR, LRESULT *pResult)
 
afx_msg void OnSelchangedTreeSounds (NMHDR *pNMHDR, LRESULT *pResult)
 
afx_msg void OnCheckPlay ()
 
afx_msg void OnBtnEdit ()
 
afx_msg void OnBtnDrop ()
 
afx_msg void OnBtnGroup ()
 
afx_msg void OnBtnSavemapas ()
 
afx_msg void OnBtnYup ()
 
afx_msg void OnBtnYdn ()
 
afx_msg void OnBtnXdn ()
 
afx_msg void OnBtnXup ()
 
afx_msg void OnBtnZup ()
 
afx_msg void OnBtnZdn ()
 
afx_msg void OnBtnTrigger ()
 
afx_msg void OnHScroll (UINT nSBCode, UINT nPos, CScrollBar *pScrollBar)
 
afx_msg void OnCheckGrouponly ()
 
afx_msg void OnSelchangeComboGroups ()
 
afx_msg void OnSelchangeComboSpeakers ()
 
afx_msg void OnBtnDown ()
 
afx_msg void OnBtnUp ()
 
afx_msg void OnBtnRefreshspeakers ()
 
afx_msg void OnBtnRefreshwave ()
 

Private Types

enum  { IDD = IDD_DIALOG_SOUND }
 

Private Member Functions

void AddSounds (bool rootItem)
 
HTREEITEM AddStrList (const char *root, const idStrList &list, int id)
 
HTREEITEM InsertTreeItem (const char *name, const char *fullName, HTREEITEM item)
 
idStr RebuildItemName (const char *root, HTREEITEM item)
 
void UpdateSelectedOrigin (float x, float y, float z)
 
void AddGroups ()
 
void AddSpeakers ()
 
void AddInUseSounds ()
 
void ApplyChanges (bool volumeOnly=false, bool updateInUseTree=true)
 
void SetWaveSize (const char *p=NULL)
 
void SetVolume (float f)
 
virtual BOOL PreTranslateMessage (MSG *pMsg)
 

Private Attributes

CComboBox comboSpeakers
 
CComboBox comboGroups
 
CEdit editVolume
 
CTreeCtrl treeSounds
 
CString strName
 
float fVolume
 
float fMax
 
float fMin
 
CString strShader
 
BOOL bPlay
 
int bTriggered
 
int bOmni
 
CString strGroup
 
BOOL bGroupOnly
 
BOOL bOcclusion
 
float leadThrough
 
BOOL plain
 
float random
 
float wait
 
float shakes
 
BOOL looping
 
BOOL unclamped
 
CString playSound
 
idHashTable< HTREEITEM > quickTree
 
HTREEITEM inUseTree
 

Detailed Description

Definition at line 39 of file DialogSound.h.

Member Enumeration Documentation

anonymous enum
Enumerator
NONE 
SOUNDS 
SOUNDPARENT 
WAVES 
WAVEDIR 
INUSESOUNDS 

Definition at line 46 of file DialogSound.h.

anonymous enum
private
Enumerator
IDD 

Definition at line 92 of file DialogSound.h.

Constructor & Destructor Documentation

CDialogSound::CDialogSound ( CWnd *  pParent = NULL)

Definition at line 57 of file DialogSound.cpp.

Member Function Documentation

void CDialogSound::AddGroups ( )
private

Definition at line 506 of file DialogSound.cpp.

void CDialogSound::AddInUseSounds ( )
private

Definition at line 519 of file DialogSound.cpp.

void CDialogSound::AddSounds ( bool  rootItem)
private

Definition at line 469 of file DialogSound.cpp.

void CDialogSound::AddSpeakers ( )
private

Definition at line 547 of file DialogSound.cpp.

HTREEITEM CDialogSound::AddStrList ( const char *  root,
const idStrList list,
int  id 
)
private

Definition at line 392 of file DialogSound.cpp.

void CDialogSound::ApplyChanges ( bool  volumeOnly = false,
bool  updateInUseTree = true 
)
private

Definition at line 323 of file DialogSound.cpp.

void CDialogSound::DoDataExchange ( CDataExchange *  pDX)
virtual

Definition at line 84 of file DialogSound.cpp.

void CDialogSound::Get ( idDict dest)

Definition at line 256 of file DialogSound.cpp.

HTREEITEM CDialogSound::InsertTreeItem ( const char *  name,
const char *  fullName,
HTREEITEM  item 
)
private
void CDialogSound::OnActivate ( UINT  nState,
CWnd *  pWndOther,
BOOL  bMinimized 
)
protected

Definition at line 203 of file DialogSound.cpp.

void CDialogSound::OnBtnApply ( )
protected

Definition at line 376 of file DialogSound.cpp.

void CDialogSound::OnBtnDown ( )
protected

Definition at line 916 of file DialogSound.cpp.

void CDialogSound::OnBtnDrop ( )
protected

Definition at line 682 of file DialogSound.cpp.

void CDialogSound::OnBtnEdit ( )
protected

Definition at line 667 of file DialogSound.cpp.

void CDialogSound::OnBtnGroup ( )
protected

Definition at line 738 of file DialogSound.cpp.

void CDialogSound::OnBtnPlaysound ( )
protected

Definition at line 593 of file DialogSound.cpp.

void CDialogSound::OnBtnRefresh ( )
protected

Definition at line 584 of file DialogSound.cpp.

void CDialogSound::OnBtnRefreshspeakers ( )
protected

Definition at line 928 of file DialogSound.cpp.

void CDialogSound::OnBtnRefreshwave ( )
protected

Definition at line 934 of file DialogSound.cpp.

void CDialogSound::OnBtnSavemap ( )
protected

Definition at line 281 of file DialogSound.cpp.

void CDialogSound::OnBtnSavemapas ( )
protected

Definition at line 776 of file DialogSound.cpp.

void CDialogSound::OnBtnSwitchtogame ( )
protected

Definition at line 287 of file DialogSound.cpp.

void CDialogSound::OnBtnTrigger ( )
protected

Definition at line 863 of file DialogSound.cpp.

void CDialogSound::OnBtnUp ( )
protected

Definition at line 922 of file DialogSound.cpp.

void CDialogSound::OnBtnXdn ( )
protected

Definition at line 843 of file DialogSound.cpp.

void CDialogSound::OnBtnXup ( )
protected

Definition at line 848 of file DialogSound.cpp.

void CDialogSound::OnBtnYdn ( )
protected

Definition at line 838 of file DialogSound.cpp.

void CDialogSound::OnBtnYup ( )
protected

Definition at line 833 of file DialogSound.cpp.

void CDialogSound::OnBtnZdn ( )
protected

Definition at line 858 of file DialogSound.cpp.

void CDialogSound::OnBtnZup ( )
protected

Definition at line 853 of file DialogSound.cpp.

void CDialogSound::OnChangeEditVolume ( )
protected

Definition at line 381 of file DialogSound.cpp.

void CDialogSound::OnCheckGrouponly ( )
protected

Definition at line 871 of file DialogSound.cpp.

void CDialogSound::OnCheckPlay ( )
protected

Definition at line 662 of file DialogSound.cpp.

void CDialogSound::OnDblclkTreeSounds ( NMHDR *  pNMHDR,
LRESULT *  pResult 
)
protected

Definition at line 605 of file DialogSound.cpp.

void CDialogSound::OnDestroy ( )
protected

Definition at line 218 of file DialogSound.cpp.

void CDialogSound::OnHScroll ( UINT  nSBCode,
UINT  nPos,
CScrollBar *  pScrollBar 
)
protected

Definition at line 867 of file DialogSound.cpp.

BOOL CDialogSound::OnInitDialog ( )
virtual

Definition at line 566 of file DialogSound.cpp.

void CDialogSound::OnMove ( int  x,
int  y 
)
protected

Definition at line 209 of file DialogSound.cpp.

void CDialogSound::OnSelchangeComboGroups ( )
protected

Definition at line 876 of file DialogSound.cpp.

void CDialogSound::OnSelchangeComboSpeakers ( )
protected

Definition at line 897 of file DialogSound.cpp.

void CDialogSound::OnSelchangedTreeSounds ( NMHDR *  pNMHDR,
LRESULT *  pResult 
)
protected

Definition at line 637 of file DialogSound.cpp.

BOOL CDialogSound::PreTranslateMessage ( MSG *  pMsg)
privatevirtual

Definition at line 962 of file DialogSound.cpp.

idStr CDialogSound::RebuildItemName ( const char *  root,
HTREEITEM  item 
)
private

Definition at line 787 of file DialogSound.cpp.

void CDialogSound::Set ( const idDict source)

Definition at line 225 of file DialogSound.cpp.

void CDialogSound::SetVolume ( float  f)
private

Definition at line 292 of file DialogSound.cpp.

void CDialogSound::SetWaveSize ( const char *  p = NULL)
private

Definition at line 630 of file DialogSound.cpp.

void CDialogSound::UpdateSelectedOrigin ( float  x,
float  y,
float  z 
)
private

Definition at line 810 of file DialogSound.cpp.

Member Data Documentation

BOOL CDialogSound::bGroupOnly
private

Definition at line 106 of file DialogSound.h.

BOOL CDialogSound::bOcclusion
private

Definition at line 107 of file DialogSound.h.

int CDialogSound::bOmni
private

Definition at line 104 of file DialogSound.h.

BOOL CDialogSound::bPlay
private

Definition at line 102 of file DialogSound.h.

int CDialogSound::bTriggered
private

Definition at line 103 of file DialogSound.h.

CComboBox CDialogSound::comboGroups
private

Definition at line 94 of file DialogSound.h.

CComboBox CDialogSound::comboSpeakers
private

Definition at line 93 of file DialogSound.h.

CEdit CDialogSound::editVolume
private

Definition at line 95 of file DialogSound.h.

float CDialogSound::fMax
private

Definition at line 99 of file DialogSound.h.

float CDialogSound::fMin
private

Definition at line 100 of file DialogSound.h.

float CDialogSound::fVolume
private

Definition at line 98 of file DialogSound.h.

HTREEITEM CDialogSound::inUseTree
private

Definition at line 119 of file DialogSound.h.

float CDialogSound::leadThrough
private

Definition at line 108 of file DialogSound.h.

BOOL CDialogSound::looping
private

Definition at line 113 of file DialogSound.h.

BOOL CDialogSound::plain
private

Definition at line 109 of file DialogSound.h.

CString CDialogSound::playSound
private

Definition at line 117 of file DialogSound.h.

idHashTable<HTREEITEM> CDialogSound::quickTree
private

Definition at line 118 of file DialogSound.h.

float CDialogSound::random
private

Definition at line 110 of file DialogSound.h.

float CDialogSound::shakes
private

Definition at line 112 of file DialogSound.h.

CString CDialogSound::strGroup
private

Definition at line 105 of file DialogSound.h.

CString CDialogSound::strName
private

Definition at line 97 of file DialogSound.h.

CString CDialogSound::strShader
private

Definition at line 101 of file DialogSound.h.

CTreeCtrl CDialogSound::treeSounds
private

Definition at line 96 of file DialogSound.h.

BOOL CDialogSound::unclamped
private

Definition at line 114 of file DialogSound.h.

float CDialogSound::wait
private

Definition at line 111 of file DialogSound.h.


The documentation for this class was generated from the following files: