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.

55 lines
1.5 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose: Dialog used to edit properties of a particle system definition
  4. //
  5. //===========================================================================//
  6. #ifndef PRESETPICKER_H
  7. #define PRESETPICKER_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. #include "vgui_controls/Frame.h"
  12. //-----------------------------------------------------------------------------
  13. // Forward declarations
  14. //-----------------------------------------------------------------------------
  15. class CDmElement;
  16. using namespace vgui;
  17. //-----------------------------------------------------------------------------
  18. //
  19. // Purpose: Picker for animation set presets
  20. //
  21. //-----------------------------------------------------------------------------
  22. class CPresetPickerFrame : public vgui::Frame
  23. {
  24. DECLARE_CLASS_SIMPLE( CPresetPickerFrame, vgui::Frame );
  25. public:
  26. CPresetPickerFrame( vgui::Panel *pParent, const char *pTitle, bool bAllowMultiSelect = true );
  27. ~CPresetPickerFrame();
  28. // Shows the modal dialog
  29. void DoModal( CDmElement *pPresetGroup, bool bSelectAll, KeyValues *pContextKeyValues );
  30. // Inherited from Frame
  31. virtual void OnCommand( const char *pCommand );
  32. private:
  33. // Refreshes the list of presets
  34. void RefreshPresetList( CDmElement *pPresetGroup, bool bSelectAll );
  35. void CleanUpMessage();
  36. vgui::ListPanel *m_pPresetList;
  37. vgui::Button *m_pOpenButton;
  38. vgui::Button *m_pCancelButton;
  39. KeyValues *m_pContextKeyValues;
  40. };
  41. #endif // PRESETPICKER_H