diff options
| author | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
|---|---|---|
| committer | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
| commit | 3bf9df6b2785fa6d951086978a3e66f49427166a (patch) | |
| tree | 2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /hammer/ModelBrowser.h | |
| download | archived-source-engine-2018-hl2-src-3bf9df6b2785fa6d951086978a3e66f49427166a.tar.xz archived-source-engine-2018-hl2-src-3bf9df6b2785fa6d951086978a3e66f49427166a.zip | |
Diffstat (limited to 'hammer/ModelBrowser.h')
| -rw-r--r-- | hammer/ModelBrowser.h | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/hammer/ModelBrowser.h b/hammer/ModelBrowser.h new file mode 100644 index 0000000..7503951 --- /dev/null +++ b/hammer/ModelBrowser.h @@ -0,0 +1,63 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +#pragma once + +#include "resource.h" +#include "VGuiWnd.h" + +// CModelBrowser dialog + +namespace vgui +{ + class TextEntry; + class Splitter; + class Button; +} + +class CModelBrowserPanel; +class CMDLPicker; + + +class CModelBrowser : public CDialog +{ + DECLARE_DYNAMIC(CModelBrowser) + +public: + CModelBrowser(CWnd* pParent = NULL); // standard constructor + virtual ~CModelBrowser(); + + void SetModelName( const char *pModelName ); + void GetModelName( char *pModelName, int length ); + void GetSkin( int &nSkin ); + void SetSkin( int nSkin ); + +// Dialog Data + enum { IDD = IDD_MODEL_BROWSER }; + +protected: + virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support + virtual BOOL PreTranslateMessage( MSG* pMsg ); + + + DECLARE_MESSAGE_MAP() + +public: + afx_msg void OnSize(UINT nType, int cx, int cy); + afx_msg void OnDestroy(); + + virtual BOOL OnInitDialog(); + + void UpdateStatusLine(); + void SaveLoadSettings( bool bSave ); + void Resize( void ); + + CVGuiPanelWnd m_VGuiWindow; + + CMDLPicker *m_pPicker; + vgui::Button *m_pButtonOK; + vgui::Button *m_pButtonCancel; + vgui::TextEntry *m_pStatusLine; + + void Show(); + void Hide(); + +}; |