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.

47 lines
1.3 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //
  7. //=============================================================================//
  8. #ifndef ATTRIBUTESURFACEPROPERTYPICKERPANEL_H
  9. #define ATTRIBUTESURFACEPROPERTYPICKERPANEL_H
  10. #ifdef _WIN32
  11. #pragma once
  12. #endif
  13. #include "dme_controls/AttributeBasePickerPanel.h"
  14. #include "matsys_controls/Picker.h"
  15. //-----------------------------------------------------------------------------
  16. // Forward declarations
  17. //-----------------------------------------------------------------------------
  18. class CPickerFrame;
  19. //-----------------------------------------------------------------------------
  20. // CAttributeSurfacePropertyPickerPanel
  21. //-----------------------------------------------------------------------------
  22. class CAttributeSurfacePropertyPickerPanel : public CAttributeBasePickerPanel
  23. {
  24. DECLARE_CLASS_SIMPLE( CAttributeSurfacePropertyPickerPanel, CAttributeBasePickerPanel );
  25. public:
  26. CAttributeSurfacePropertyPickerPanel( vgui::Panel *parent, const AttributeWidgetInfo_t &info );
  27. ~CAttributeSurfacePropertyPickerPanel();
  28. private:
  29. // Reads the surface properties
  30. void AddSurfacePropertiesToList( PickerList_t &list );
  31. MESSAGE_FUNC_PARAMS( OnPicked, "Picked", kv );
  32. virtual void ShowPickerDialog();
  33. };
  34. #endif // ATTRIBUTESURFACEPROPERTYPICKERPANEL_H