mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2025-01-12 11:42:10 +08:00
40 lines
1023 B
C
40 lines
1023 B
C
|
#ifndef _INCLUDED_KV_NODE_PANEL_H
|
||
|
#define _INCLUDED_KV_NODE_PANEL_H
|
||
|
#ifdef _WIN32
|
||
|
#pragma once
|
||
|
#endif
|
||
|
|
||
|
#include "kv_fit_children_panel.h"
|
||
|
|
||
|
namespace vgui
|
||
|
{
|
||
|
class Label;
|
||
|
class Button;
|
||
|
};
|
||
|
|
||
|
// a vgui panel for showing a generic leaf
|
||
|
class CKV_Node_Panel : public CKV_Fit_Children_Panel
|
||
|
{
|
||
|
DECLARE_CLASS_SIMPLE( CKV_Node_Panel, CKV_Fit_Children_Panel );
|
||
|
|
||
|
public:
|
||
|
CKV_Node_Panel( Panel *parent, const char *name);
|
||
|
|
||
|
virtual void PerformLayout();
|
||
|
virtual void UpdatePanel();
|
||
|
virtual void ApplySchemeSettings(vgui::IScheme *pScheme);
|
||
|
virtual void OnCommand( const char *command );
|
||
|
|
||
|
vgui::Label *m_pLabel;
|
||
|
|
||
|
vgui::Button* m_pDeleteButton;
|
||
|
CUtlVector<vgui::Button*> m_pAddButtons;
|
||
|
|
||
|
MESSAGE_FUNC_CHARPTR( OnAddButtonPressed, "AddButtonPressed", szKeyName );
|
||
|
|
||
|
CPanelAnimationVarAliasType( int, m_iLabelInsetX, "LabelInsetX", "2", "proportional_int" );
|
||
|
CPanelAnimationVarAliasType( int, m_iLabelInsetY, "LabelInsetY", "2", "proportional_int" );
|
||
|
};
|
||
|
|
||
|
|
||
|
#endif // _INCLUDED_KV_NODE_PANEL_H
|