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.

59 lines
1.5 KiB

  1. //====== Copyright � 1996-2005, Valve Corporation, All rights reserved. =======
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================
  6. #ifndef VTFPICKER_H
  7. #define VTFPICKER_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. #include "matsys_controls/baseassetpicker.h"
  12. //-----------------------------------------------------------------------------
  13. // Forward declarations
  14. //-----------------------------------------------------------------------------
  15. class CVTFPreviewPanel;
  16. namespace vgui
  17. {
  18. class Splitter;
  19. }
  20. //-----------------------------------------------------------------------------
  21. // Purpose: Base class for choosing raw assets
  22. //-----------------------------------------------------------------------------
  23. class CVTFPicker : public CBaseAssetPicker
  24. {
  25. DECLARE_CLASS_SIMPLE( CVTFPicker, CBaseAssetPicker );
  26. public:
  27. CVTFPicker( vgui::Panel *pParent );
  28. virtual ~CVTFPicker();
  29. private:
  30. // Derived classes have this called when the previewed asset changes
  31. virtual void OnSelectedAssetPicked( const char *pAssetName );
  32. CVTFPreviewPanel *m_pVTFPreview;
  33. vgui::Splitter *m_pPreviewSplitter;
  34. };
  35. //-----------------------------------------------------------------------------
  36. // Purpose: Modal dialog for asset picker
  37. //-----------------------------------------------------------------------------
  38. class CVTFPickerFrame : public CBaseAssetPickerFrame
  39. {
  40. DECLARE_CLASS_SIMPLE( CVTFPickerFrame, CBaseAssetPickerFrame );
  41. public:
  42. CVTFPickerFrame( vgui::Panel *pParent, const char *pTitle );
  43. };
  44. #endif // VTFPICKER_H