diff options
| author | Joe Ludwig <[email protected]> | 2013-06-26 15:22:04 -0700 |
|---|---|---|
| committer | Joe Ludwig <[email protected]> | 2013-06-26 15:22:04 -0700 |
| commit | 39ed87570bdb2f86969d4be821c94b722dc71179 (patch) | |
| tree | abc53757f75f40c80278e87650ea92808274aa59 /mp/src/public/matsys_controls/vtfpicker.h | |
| download | source-sdk-2013-39ed87570bdb2f86969d4be821c94b722dc71179.tar.xz source-sdk-2013-39ed87570bdb2f86969d4be821c94b722dc71179.zip | |
First version of the SOurce SDK 2013
Diffstat (limited to 'mp/src/public/matsys_controls/vtfpicker.h')
| -rw-r--r-- | mp/src/public/matsys_controls/vtfpicker.h | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/mp/src/public/matsys_controls/vtfpicker.h b/mp/src/public/matsys_controls/vtfpicker.h new file mode 100644 index 00000000..fa1efa07 --- /dev/null +++ b/mp/src/public/matsys_controls/vtfpicker.h @@ -0,0 +1,59 @@ +//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+//=============================================================================
+
+#ifndef VTFPICKER_H
+#define VTFPICKER_H
+#ifdef _WIN32
+#pragma once
+#endif
+
+#include "matsys_controls/baseassetpicker.h"
+
+
+//-----------------------------------------------------------------------------
+// Forward declarations
+//-----------------------------------------------------------------------------
+class CVTFPreviewPanel;
+
+namespace vgui
+{
+ class Splitter;
+}
+
+
+//-----------------------------------------------------------------------------
+// Purpose: Base class for choosing raw assets
+//-----------------------------------------------------------------------------
+class CVTFPicker : public CBaseAssetPicker
+{
+ DECLARE_CLASS_SIMPLE( CVTFPicker, CBaseAssetPicker );
+
+public:
+ CVTFPicker( vgui::Panel *pParent );
+ virtual ~CVTFPicker();
+
+private:
+ // Derived classes have this called when the previewed asset changes
+ virtual void OnSelectedAssetPicked( const char *pAssetName );
+
+ CVTFPreviewPanel *m_pVTFPreview;
+ vgui::Splitter *m_pPreviewSplitter;
+};
+
+
+//-----------------------------------------------------------------------------
+// Purpose: Modal dialog for asset picker
+//-----------------------------------------------------------------------------
+class CVTFPickerFrame : public CBaseAssetPickerFrame
+{
+ DECLARE_CLASS_SIMPLE( CVTFPickerFrame, CBaseAssetPickerFrame );
+
+public:
+ CVTFPickerFrame( vgui::Panel *pParent, const char *pTitle );
+};
+
+
+#endif // VTFPICKER_H
|