blob: af670b9858a0f89a50d477513fa06005dd209369 (
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
|
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $NoKeywords: $
//=============================================================================//
#ifndef CL_DEMOEDITORPANEL_H
#define CL_DEMOEDITORPANEL_H
#ifdef _WIN32
#pragma once
#endif
#include <vgui_controls/Frame.h>
namespace vgui
{
class Button;
class Label;
class ListPanel;
};
class CBaseDemoAction;
class CNewActionButton;
class CBaseActionEditDialog;
//-----------------------------------------------------------------------------
// Purpose:
//-----------------------------------------------------------------------------
class CDemoEditorPanel : public vgui::Frame
{
DECLARE_CLASS_SIMPLE( CDemoEditorPanel, vgui::Frame );
public:
CDemoEditorPanel( vgui::Panel *parent );
~CDemoEditorPanel();
virtual void OnTick();
// Command issued
virtual void OnCommand(const char *command);
void OnVDMChanged( void );
void OnRefresh();
protected:
bool IsNewActionCommand( char const *command );
void CreateNewAction( char const *actiontype );
void OnEdit();
void OnDelete();
void OnSave();
void OnRevert();
void PurgeActionList();
void PopulateActionList();
CBaseDemoAction *FindActionByName( char const *name );
vgui::Label *m_pCurrentDemo;
vgui::Button *m_pSave;
vgui::Button *m_pRevert;
vgui::Button *m_pOK;
vgui::Button *m_pCancel;
CNewActionButton *m_pNew;
vgui::Button *m_pEdit;
vgui::Button *m_pDelete;
vgui::ListPanel *m_pActions;
vgui::DHANDLE< CBaseActionEditDialog > m_hCurrentEditor;
};
#endif // CL_DEMOEDITORPANEL_H
|