mirror of
https://github.com/nillerusr/source-engine.git
synced 2026-08-17 06:03:02 +00:00
1
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user