diff options
| author | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
|---|---|---|
| committer | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
| commit | 3bf9df6b2785fa6d951086978a3e66f49427166a (patch) | |
| tree | 2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /utils/scenemanager/soundbrowser.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'utils/scenemanager/soundbrowser.h')
| -rw-r--r-- | utils/scenemanager/soundbrowser.h | 89 |
1 files changed, 89 insertions, 0 deletions
diff --git a/utils/scenemanager/soundbrowser.h b/utils/scenemanager/soundbrowser.h new file mode 100644 index 0000000..5b3b067 --- /dev/null +++ b/utils/scenemanager/soundbrowser.h @@ -0,0 +1,89 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +//=============================================================================// + +#ifndef SOUNDBROWSER_H +#define SOUNDBROWSER_H +#ifdef _WIN32 +#pragma once +#endif + +#include "mxtk/mxListView.h" +#include "commctrl.h" +#include "utlsymbol.h" + +class CWorkspace; +class CProject; +class CScene; +class CVCDFile; +class CSoundEntry; + +class CSoundList; +class CWorkspaceManager; +class CSoundFilterTab; +class COptionsWindow; + + +class CSoundBrowser : public mxWindow +{ + typedef mxWindow BaseClass; +public: + + CSoundBrowser( mxWindow *parent, CWorkspaceManager *manager, int id ); + + virtual int handleEvent( mxEvent *event ); + virtual void OnDelete(); + + CWorkspaceManager *GetManager(); + + void RepopulateTree(); + + void BuildSelectionList( CUtlVector< CSoundEntry * >& selected ); + + void OnPlay(); + + void JumpToItem( CSoundEntry *se ); + + void OnSearch(); + +private: + + char const *GetSearchString(); + + void OnShowInWaveBrowser(); + void OnSoundProperties(); + void OnAddSound(); + void OnRemoveSound(); + void OnGetSentence(); + void PopulateTree( bool voiceonly, char const *scriptonly ); + + void ShowContextMenu( void ); + + void LoadAllSounds(); + void RemoveAllSounds(); + + + CSoundList *m_pListView; + + enum + { + NUM_BITMAPS = 8, + }; + + CWorkspaceManager *m_pManager; + + CUtlVector< CSoundEntry * > m_AllSounds; + CUtlSymbolTable m_ScriptTable; + + CUtlVector< CUtlSymbol > m_Scripts; + + CSoundFilterTab *m_pFilter; + COptionsWindow *m_pOptions; + + CUtlVector< CSoundEntry * > m_CurrentSelection; +}; + + +#endif // SOUNDBROWSER_H |