summaryrefslogtreecommitdiff
path: root/public/dme_controls/dmecombinationsystemeditorpanel.h
blob: 7d624499eb4d2fbd00caf66aadbb30fb43950e17 (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
90
91
92
93
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose: 
//
// $NoKeywords: $
//=============================================================================

#ifndef DMECOMBINATIONSYSTEMEDITORPANEL_H
#define DMECOMBINATIONSYSTEMEDITORPANEL_H

#ifdef _WIN32
#pragma once
#endif

#include "tier1/utlvector.h"
#include "vgui_controls/Frame.h"
#include "datamodel/dmehandle.h"


//-----------------------------------------------------------------------------
// Forward declarations
//-----------------------------------------------------------------------------
class CDmeCombinationControlsPanel;
class CDmeCombinationDominationRulesPanel;
class CDmeCombinationOperator;
class CDmeElementPanel;

namespace vgui
{
	class PropertySheet;
	class PropertyPage;
	class Button;
}


//-----------------------------------------------------------------------------
// Dag editor panel
//-----------------------------------------------------------------------------
class CDmeCombinationSystemEditorPanel : public vgui::EditablePanel
{
	DECLARE_CLASS_SIMPLE( CDmeCombinationSystemEditorPanel, vgui::EditablePanel );

public:
	// constructor, destructor
	CDmeCombinationSystemEditorPanel( vgui::Panel *pParent, const char *pName );
	virtual ~CDmeCombinationSystemEditorPanel();

	// Sets the current scene + animation list
	void SetDmeElement( CDmeCombinationOperator *pComboSystem );
	CDmeCombinationOperator *GetDmeElement();

private:
	// Called when the selection changes moves
	MESSAGE_FUNC( OnPageChanged, "PageChanged" );
    MESSAGE_FUNC_PARAMS( OnDmeElementChanged, "DmeElementChanged", kv );

	vgui::PropertySheet *m_pEditorSheet;
	vgui::PropertyPage *m_pControlsPage;
	vgui::PropertyPage *m_pDominationRulesPage;
	vgui::PropertyPage *m_pPropertiesPage;
	CDmeCombinationControlsPanel *m_pControlsPanel;
	CDmeCombinationDominationRulesPanel *m_pDominationRulesPanel;
	CDmeElementPanel *m_pPropertiesPanel;
};


//-----------------------------------------------------------------------------
// Frame for combination system
//-----------------------------------------------------------------------------
class CDmeCombinationSystemEditorFrame : public vgui::Frame
{
	DECLARE_CLASS_SIMPLE( CDmeCombinationSystemEditorFrame, vgui::Frame );

public:
	CDmeCombinationSystemEditorFrame( vgui::Panel *pParent, const char *pTitle );
	~CDmeCombinationSystemEditorFrame();

	// Sets the current scene + animation list
	void SetCombinationOperator( CDmeCombinationOperator *pComboSystem );

	// Inherited from Frame
	virtual void OnCommand( const char *pCommand );

private:
    MESSAGE_FUNC( OnDmeElementChanged, "DmeElementChanged" );

	CDmeCombinationSystemEditorPanel *m_pEditor;
	vgui::Button *m_pOpenButton;
	vgui::Button *m_pCancelButton;
};


#endif // DMECOMBINATIONSYSTEMEDITORPANEL_H