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 TGAPICKER_H
  7. #define TGAPICKER_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. #include "matsys_controls/baseassetpicker.h"
  12. //-----------------------------------------------------------------------------
  13. // Forward declarations
  14. //-----------------------------------------------------------------------------
  15. class CTGAPreviewPanel;
  16. namespace vgui
  17. {
  18. class Splitter;
  19. }
  20. //-----------------------------------------------------------------------------
  21. // Purpose: Base class for choosing raw assets
  22. //-----------------------------------------------------------------------------
  23. class CTGAPicker : public CBaseAssetPicker
  24. {
  25. DECLARE_CLASS_SIMPLE( CTGAPicker, CBaseAssetPicker );
  26. public:
  27. CTGAPicker( vgui::Panel *pParent );
  28. virtual ~CTGAPicker();
  29. private:
  30. // Derived classes have this called when the previewed asset changes
  31. virtual void OnSelectedAssetPicked( const char *pAssetName );
  32. CTGAPreviewPanel *m_pTGAPreview;
  33. vgui::Splitter *m_pPreviewSplitter;
  34. };
  35. //-----------------------------------------------------------------------------
  36. // Purpose: Modal dialog for asset picker
  37. //-----------------------------------------------------------------------------
  38. class CTGAPickerFrame : public CBaseAssetPickerFrame
  39. {
  40. DECLARE_CLASS_SIMPLE( CTGAPickerFrame, CBaseAssetPickerFrame );
  41. public:
  42. CTGAPickerFrame( vgui::Panel *pParent, const char *pTitle );
  43. };
  44. #endif // TGAPICKER_H