diff options
| author | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
|---|---|---|
| committer | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
| commit | 3bf9df6b2785fa6d951086978a3e66f49427166a (patch) | |
| tree | 2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /tools/vcdblock/infotargetbrowserpanel.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'tools/vcdblock/infotargetbrowserpanel.h')
| -rw-r--r-- | tools/vcdblock/infotargetbrowserpanel.h | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/tools/vcdblock/infotargetbrowserpanel.h b/tools/vcdblock/infotargetbrowserpanel.h new file mode 100644 index 0000000..3a8ecc4 --- /dev/null +++ b/tools/vcdblock/infotargetbrowserpanel.h @@ -0,0 +1,68 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +//===========================================================================// + +#ifndef INFOTARGETBROWSERPANEL_H +#define INFOTARGETBROWSERPANEL_H +#ifdef _WIN32 +#pragma once +#endif + +#include "vgui_controls/editablepanel.h" +#include "tier1/utlstring.h" + + +//----------------------------------------------------------------------------- +// Forward declarations +//----------------------------------------------------------------------------- +class CVcdBlockDoc; +class CDmeVMFEntity; +namespace vgui +{ + class ComboBox; + class Button; + class TextEntry; + class ListPanel; + class CheckButton; + class RadioButton; +} + + +//----------------------------------------------------------------------------- +// Panel that shows all entities in the level +//----------------------------------------------------------------------------- +class CInfoTargetBrowserPanel : public vgui::EditablePanel +{ + DECLARE_CLASS_SIMPLE( CInfoTargetBrowserPanel, vgui::EditablePanel ); + +public: + CInfoTargetBrowserPanel( CVcdBlockDoc *pDoc, vgui::Panel* pParent, const char *pName ); // standard constructor + virtual ~CInfoTargetBrowserPanel(); + + // Inherited from Panel + virtual void OnCommand( const char *pCommand ); + virtual void OnKeyCodeTyped( vgui::KeyCode code ); + + // Methods related to updating the listpanel + void UpdateEntityList(); + void Refresh(); + + // Select a particular node + void SelectNode( CDmeVMFEntity *pNode ); + +private: + // Messages handled + MESSAGE_FUNC( OnDeleteEntities, "DeleteEntities" ); + MESSAGE_FUNC( OnItemSelected, "ItemSelected" ); + + // Shows the most recent selected object in properties window + void OnProperties(); + + CVcdBlockDoc *m_pDoc; + vgui::ListPanel *m_pEntities; +}; + + +#endif // INFOTARGETBROWSERPANEL_H |