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.

49 lines
1.5 KiB

  1. //====== Copyright � 1996-2005, Valve Corporation, All rights reserved. =======//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //
  7. //=============================================================================//
  8. #ifndef ATTRIBUTEINTERPOLATORTYPECHOICEPANEL_h
  9. #define ATTRIBUTEINTERPOLATORTYPECHOICEPANEL_h
  10. #ifdef _WIN32
  11. #pragma once
  12. #endif
  13. #include "dme_controls/BaseAttributeDoubleChoicePanel.h"
  14. #include "movieobjects/dmeeditortypedictionary.h"
  15. #include "vgui_controls/MessageMap.h"
  16. //-----------------------------------------------------------------------------
  17. // Forward declarations
  18. //-----------------------------------------------------------------------------
  19. struct AttributeWidgetInfo_t;
  20. namespace vgui
  21. {
  22. class Panel;
  23. class ComboBox;
  24. }
  25. //-----------------------------------------------------------------------------
  26. // CAttributeInterpolatorChoicePanel
  27. //-----------------------------------------------------------------------------
  28. class CAttributeInterpolatorChoicePanel : public CBaseAttributeDoubleChoicePanel
  29. {
  30. DECLARE_CLASS_SIMPLE( CAttributeInterpolatorChoicePanel, CBaseAttributeDoubleChoicePanel );
  31. public:
  32. CAttributeInterpolatorChoicePanel( vgui::Panel *parent, const AttributeWidgetInfo_t &info );
  33. private:
  34. virtual void PopulateComboBoxes( vgui::ComboBox *pComboBox[2] );
  35. virtual void SetAttributeFromComboBoxes( vgui::ComboBox *pComboBox[2], KeyValues *pKeyValues[ 2 ] );
  36. virtual void SetComboBoxesFromAttribute( vgui::ComboBox *pComboBox[2] );
  37. };
  38. #endif // ATTRIBUTEINTERPOLATORTYPECHOICEPANEL_h