blob: 5b3b06735a745199e803c2c041b6735ccab9c65d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
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
|