Counter Strike : Global Offensive Source Code
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.

62 lines
1.6 KiB

  1. //====== Copyright � 1996-2005, Valve Corporation, All rights reserved. =======//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //
  7. //=============================================================================//
  8. #ifndef ATTRIBUTEELEMENTPICKERPANEL_H
  9. #define ATTRIBUTEELEMENTPICKERPANEL_H
  10. #ifdef _WIN32
  11. #pragma once
  12. #endif
  13. #include "dme_controls/BaseAttributeChoicePanel.h"
  14. #include "vgui_controls/phandle.h"
  15. //-----------------------------------------------------------------------------
  16. // Forward declarations
  17. //-----------------------------------------------------------------------------
  18. class CDmElement;
  19. class CAttributeTextEntry;
  20. namespace vgui
  21. {
  22. class Label;
  23. }
  24. //-----------------------------------------------------------------------------
  25. // CAttributeElementPickerPanel
  26. //-----------------------------------------------------------------------------
  27. class CAttributeElementPickerPanel : public CBaseAttributePanel
  28. {
  29. DECLARE_CLASS_SIMPLE( CAttributeElementPickerPanel, CBaseAttributePanel );
  30. public:
  31. CAttributeElementPickerPanel( vgui::Panel *parent, const AttributeWidgetInfo_t &info );
  32. virtual void OnCommand( const char *cmd );
  33. virtual void PerformLayout();
  34. virtual void PostConstructor();
  35. virtual void Apply();
  36. private:
  37. // Inherited classes must implement this
  38. virtual Panel *GetDataPanel();
  39. virtual void Refresh();
  40. MESSAGE_FUNC_PARAMS( OnDmeSelected, "DmeSelected", kv );
  41. virtual void ShowPickerDialog();
  42. vgui::DHANDLE< vgui::Button > m_hEdit;
  43. CAttributeTextEntry *m_pData;
  44. bool m_bShowMemoryUsage;
  45. bool m_bShowUniqueID;
  46. };
  47. #endif // ATTRIBUTEELEMENTPICKERPANEL_H