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/OP_Model.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'hammer/OP_Model.h')
| -rw-r--r-- | hammer/OP_Model.h | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/hammer/OP_Model.h b/hammer/OP_Model.h new file mode 100644 index 0000000..4679b9a --- /dev/null +++ b/hammer/OP_Model.h @@ -0,0 +1,78 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +//=============================================================================// + +#ifndef OP_MODEL_H +#define OP_MODEL_H +#ifdef _WIN32 +#pragma once +#endif + +#include "ObjectPage.h" +#include "FilteredComboBox.h" + +class GDclass; +class CMapStudioModel; + + +class COP_Model : public CObjectPage, public CFilteredComboBox::ICallbacks +{ + friend class CFilteredModelSequenceComboBox; + DECLARE_DYNCREATE(COP_Model) + +public: + COP_Model(); + ~COP_Model(); + + virtual bool SaveData(void); + virtual void UpdateData( int Mode, PVOID pData, bool bCanEdit ); + void UpdateForClass(LPCTSTR pszClass); + + void OnSelChangeSequence( int iSequence ); + + +// Implementation of CFilteredComboBox::ICallbacks. + + virtual void OnTextChanged( const char *pText ); + +// Variables. + + GDclass *pObjClass; + + //{{AFX_DATA(COP_Model) + enum { IDD = IDD_OBJPAGE_MODEL }; + CFilteredComboBox m_ComboSequence; + CSliderCtrl m_ScrollBarFrame; + // DO NOT EDIT what you see in these blocks of generated code ! + //}}AFX_DATA + + // ClassWizard generate virtual function overrides + //{{AFX_VIRTUAL(COP_Model) + protected: + virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support + //}}AFX_VIRTUAL + +private: + void SetReadOnly( bool bReadOnly ); + +protected: + + CMapStudioModel *GetModelHelper(void); + void UpdateFrameText(float flFrame); + + // Generated message map functions + //{{AFX_MSG(COP_Model) + virtual BOOL OnInitDialog(); + virtual BOOL OnKillActive(); + virtual BOOL OnSetActive(); + afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar *pScrollBar); + //}}AFX_MSG + + DECLARE_MESSAGE_MAP() + + BOOL m_bOldAnimatedModels; +}; + +#endif // OP_MODEL_H |