summaryrefslogtreecommitdiff
path: root/tools/commedit/commentarynodebrowserpanel.h
diff options
context:
space:
mode:
authorFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
committerFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
commit3bf9df6b2785fa6d951086978a3e66f49427166a (patch)
tree2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /tools/commedit/commentarynodebrowserpanel.h
downloadarchived-source-engine-2018-hl2-src-master.tar.xz
archived-source-engine-2018-hl2-src-master.zip
Diffstat (limited to 'tools/commedit/commentarynodebrowserpanel.h')
-rw-r--r--tools/commedit/commentarynodebrowserpanel.h67
1 files changed, 67 insertions, 0 deletions
diff --git a/tools/commedit/commentarynodebrowserpanel.h b/tools/commedit/commentarynodebrowserpanel.h
new file mode 100644
index 0000000..38a7de1
--- /dev/null
+++ b/tools/commedit/commentarynodebrowserpanel.h
@@ -0,0 +1,67 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+//===========================================================================//
+
+#ifndef COMMENTARYNODEBROWSERPANEL_H
+#define COMMENTARYNODEBROWSERPANEL_H
+#ifdef _WIN32
+#pragma once
+#endif
+
+#include "vgui_controls/editablepanel.h"
+#include "tier1/utlstring.h"
+
+
+//-----------------------------------------------------------------------------
+// Forward declarations
+//-----------------------------------------------------------------------------
+class CCommEditDoc;
+class CDmeCommentaryNodeEntity;
+namespace vgui
+{
+ class ComboBox;
+ class Button;
+ class TextEntry;
+ class ListPanel;
+ class CheckButton;
+ class RadioButton;
+}
+
+
+//-----------------------------------------------------------------------------
+// Panel that shows all entities in the level
+//-----------------------------------------------------------------------------
+class CCommentaryNodeBrowserPanel : public vgui::EditablePanel
+{
+ DECLARE_CLASS_SIMPLE( CCommentaryNodeBrowserPanel, vgui::EditablePanel );
+
+public:
+ CCommentaryNodeBrowserPanel( CCommEditDoc *pDoc, vgui::Panel* pParent, const char *pName ); // standard constructor
+ virtual ~CCommentaryNodeBrowserPanel();
+
+// Inherited from Panel
+ virtual void OnCommand( const char *pCommand );
+ virtual void OnKeyCodeTyped( vgui::KeyCode code );
+
+ // Methods related to updating the listpanel
+ void UpdateEntityList();
+
+ // Select a particular node
+ void SelectNode( CDmeCommentaryNodeEntity *pNode );
+
+private:
+ // Messages handled
+ MESSAGE_FUNC( OnDeleteEntities, "DeleteEntities" );
+ MESSAGE_FUNC( OnItemSelected, "ItemSelected" );
+
+ // Shows the most recent selected object in properties window
+ void OnProperties();
+
+ CCommEditDoc *m_pDoc;
+ vgui::ListPanel *m_pEntities;
+};
+
+
+#endif // COMMENTARYNODEBROWSERPANEL_H