Team Fortress 2 Source Code as on 22/4/2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

67 lines
1.8 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. //===========================================================================//
  6. #ifndef COMMENTARYNODEBROWSERPANEL_H
  7. #define COMMENTARYNODEBROWSERPANEL_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. #include "vgui_controls/editablepanel.h"
  12. #include "tier1/utlstring.h"
  13. //-----------------------------------------------------------------------------
  14. // Forward declarations
  15. //-----------------------------------------------------------------------------
  16. class CCommEditDoc;
  17. class CDmeCommentaryNodeEntity;
  18. namespace vgui
  19. {
  20. class ComboBox;
  21. class Button;
  22. class TextEntry;
  23. class ListPanel;
  24. class CheckButton;
  25. class RadioButton;
  26. }
  27. //-----------------------------------------------------------------------------
  28. // Panel that shows all entities in the level
  29. //-----------------------------------------------------------------------------
  30. class CCommentaryNodeBrowserPanel : public vgui::EditablePanel
  31. {
  32. DECLARE_CLASS_SIMPLE( CCommentaryNodeBrowserPanel, vgui::EditablePanel );
  33. public:
  34. CCommentaryNodeBrowserPanel( CCommEditDoc *pDoc, vgui::Panel* pParent, const char *pName ); // standard constructor
  35. virtual ~CCommentaryNodeBrowserPanel();
  36. // Inherited from Panel
  37. virtual void OnCommand( const char *pCommand );
  38. virtual void OnKeyCodeTyped( vgui::KeyCode code );
  39. // Methods related to updating the listpanel
  40. void UpdateEntityList();
  41. // Select a particular node
  42. void SelectNode( CDmeCommentaryNodeEntity *pNode );
  43. private:
  44. // Messages handled
  45. MESSAGE_FUNC( OnDeleteEntities, "DeleteEntities" );
  46. MESSAGE_FUNC( OnItemSelected, "ItemSelected" );
  47. // Shows the most recent selected object in properties window
  48. void OnProperties();
  49. CCommEditDoc *m_pDoc;
  50. vgui::ListPanel *m_pEntities;
  51. };
  52. #endif // COMMENTARYNODEBROWSERPANEL_H