blob: b086a480db5eb5a739331edc846b37f99c2dba70 (
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
|
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $NoKeywords: $
//
//=============================================================================//
#ifndef ATTRIBUTETEXTPANEL_H
#define ATTRIBUTETEXTPANEL_H
#ifdef _WIN32
#pragma once
#endif
#include "dme_controls/BaseAttributePanel.h"
//-----------------------------------------------------------------------------
// Forward declarations
//-----------------------------------------------------------------------------
class CDmElement;
class CAttributeTextEntry;
namespace vgui
{
class Label;
}
//-----------------------------------------------------------------------------
// CAttributeTextPanel
//-----------------------------------------------------------------------------
class CAttributeTextPanel : public CBaseAttributePanel
{
DECLARE_CLASS_SIMPLE( CAttributeTextPanel, CBaseAttributePanel );
public:
CAttributeTextPanel( vgui::Panel *parent, const AttributeWidgetInfo_t &info );
virtual void SetFont( HFont font );
virtual void PostConstructor();
virtual void Apply();
virtual void Refresh();
// Returns the text type
const char *GetTextType();
protected:
virtual vgui::Panel *GetDataPanel();
MESSAGE_FUNC(OnTextChanged, "TextChanged")
{
SetDirty( true );
}
protected:
CAttributeTextEntry *m_pData;
bool m_bShowMemoryUsage;
};
#endif // ATTRIBUTETEXTPANEL_H
|