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.

52 lines
1.2 KiB

  1. //====== Copyright � 1996-2005, Valve Corporation, All rights reserved. =======//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //
  7. //=============================================================================//
  8. #ifndef ATTRIBUTEBASEPICKERPANEL_H
  9. #define ATTRIBUTEBASEPICKERPANEL_H
  10. #ifdef _WIN32
  11. #pragma once
  12. #endif
  13. #include "dme_controls/AttributeTextPanel.h"
  14. //-----------------------------------------------------------------------------
  15. // Forward declarations
  16. //-----------------------------------------------------------------------------
  17. class CDmElement;
  18. namespace vgui
  19. {
  20. class Button;
  21. }
  22. //-----------------------------------------------------------------------------
  23. // CAttributeBasePickerPanel
  24. //-----------------------------------------------------------------------------
  25. class CAttributeBasePickerPanel : public CAttributeTextPanel
  26. {
  27. DECLARE_CLASS_SIMPLE( CAttributeBasePickerPanel, CAttributeTextPanel );
  28. public:
  29. CAttributeBasePickerPanel( vgui::Panel *parent, const AttributeWidgetInfo_t &info );
  30. // Inherited from Panel
  31. virtual void OnCommand( const char *cmd );
  32. virtual void PerformLayout();
  33. private:
  34. // Inherited classes must implement this
  35. virtual void ShowPickerDialog() = 0;
  36. vgui::Button *m_pOpen;
  37. };
  38. #endif // ATTRIBUTEBASEPICKERPANEL_H