summaryrefslogtreecommitdiff
path: root/public/dme_controls/AttributeInterpolatorChoicePanel.h
blob: b44817d0c2e54923aba4f48cb0908221faa9fd20 (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
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose: 
//
// $NoKeywords: $
//
//=============================================================================//

#ifndef ATTRIBUTEINTERPOLATORTYPECHOICEPANEL_h
#define ATTRIBUTEINTERPOLATORTYPECHOICEPANEL_h

#ifdef _WIN32
#pragma once
#endif

#include "dme_controls/BaseAttributeDoubleChoicePanel.h"
#include "movieobjects/dmeeditortypedictionary.h"
#include "vgui_controls/MessageMap.h"


//-----------------------------------------------------------------------------
// Forward declarations
//-----------------------------------------------------------------------------
struct AttributeWidgetInfo_t;

namespace vgui
{
	class Panel;
	class ComboBox;
}

//-----------------------------------------------------------------------------
// CAttributeInterpolatorChoicePanel
//-----------------------------------------------------------------------------
class CAttributeInterpolatorChoicePanel : public CBaseAttributeDoubleChoicePanel
{
	DECLARE_CLASS_SIMPLE( CAttributeInterpolatorChoicePanel, CBaseAttributeDoubleChoicePanel );

public:
	CAttributeInterpolatorChoicePanel( vgui::Panel *parent,	const AttributeWidgetInfo_t &info );

private:
	virtual void PopulateComboBoxes( vgui::ComboBox *pComboBox[2] );
	virtual void SetAttributeFromComboBoxes( vgui::ComboBox *pComboBox[2], KeyValues *pKeyValues[ 2 ] );
	virtual void SetComboBoxesFromAttribute( vgui::ComboBox *pComboBox[2] );
};


#endif // ATTRIBUTEINTERPOLATORTYPECHOICEPANEL_h