mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2025-01-10 10:59:39 +08:00
37 lines
987 B
C++
37 lines
987 B
C++
#ifndef _INCLUDED_KV_COMBO_LEAF_PANEL_H
|
|
#define _INCLUDED_KV_COMBO_LEAF_PANEL_H
|
|
#ifdef _WIN32
|
|
#pragma once
|
|
#endif
|
|
|
|
#include "kv_editor_base_panel.h"
|
|
|
|
namespace vgui
|
|
{
|
|
class TextEntry;
|
|
class Label;
|
|
class ComboBox;
|
|
};
|
|
|
|
// a vgui panel for showing a generic leaf
|
|
class CKV_Combo_Leaf_Panel : public CKV_Editor_Base_Panel
|
|
{
|
|
DECLARE_CLASS_SIMPLE( CKV_Combo_Leaf_Panel, CKV_Editor_Base_Panel );
|
|
|
|
public:
|
|
CKV_Combo_Leaf_Panel( Panel *parent, const char *name);
|
|
|
|
virtual void PerformLayout();
|
|
virtual void UpdatePanel();
|
|
virtual void ApplySchemeSettings(vgui::IScheme *pScheme);
|
|
virtual void OnCommand( const char *command );
|
|
|
|
MESSAGE_FUNC_PTR( OnTextChanged, "TextChanged", panel );
|
|
vgui::ComboBox *m_pCombo;
|
|
vgui::Label *m_pLabel;
|
|
vgui::Button* m_pDeleteButton;
|
|
bool m_bIntegerChoice; // if set to true, this combo box represents an enum or some choice of integers, rather than a list of strings
|
|
};
|
|
|
|
|
|
#endif // _INCLUDED_KV_COMBO_LEAF_PANEL_H
|