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.

80 lines
1.8 KiB

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================//
  6. #ifndef OP_MODEL_H
  7. #define OP_MODEL_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. #include "ObjectPage.h"
  12. #include "FilteredComboBox.h"
  13. class GDclass;
  14. class CMapStudioModel;
  15. class COP_Model : public CObjectPage, public CFilteredComboBox::ICallbacks
  16. {
  17. friend class CFilteredModelSequenceComboBox;
  18. DECLARE_DYNCREATE(COP_Model)
  19. public:
  20. COP_Model();
  21. ~COP_Model();
  22. virtual bool SaveData( SaveData_Reason_t reason );
  23. virtual void UpdateData( int Mode, PVOID pData, bool bCanEdit );
  24. void UpdateForClass(LPCTSTR pszClass);
  25. void OnSelChangeSequence( int iSequence );
  26. // Implementation of CFilteredComboBox::ICallbacks.
  27. virtual void OnTextChanged( const char *pText );
  28. // Variables.
  29. GDclass *pObjClass;
  30. //{{AFX_DATA(COP_Model)
  31. enum { IDD = IDD_OBJPAGE_MODEL };
  32. CFilteredComboBox m_ComboSequence;
  33. CSliderCtrl m_ScrollBarFrame;
  34. // DO NOT EDIT what you see in these blocks of generated code !
  35. //}}AFX_DATA
  36. // ClassWizard generate virtual function overrides
  37. //{{AFX_VIRTUAL(COP_Model)
  38. protected:
  39. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  40. //}}AFX_VIRTUAL
  41. private:
  42. void SetReadOnly( bool bReadOnly );
  43. protected:
  44. CMapStudioModel *GetModelHelper(void);
  45. void UpdateFrameText(int nFrame);
  46. void InitScrollRange( void );
  47. // Generated message map functions
  48. //{{AFX_MSG(COP_Model)
  49. virtual BOOL OnInitDialog();
  50. virtual BOOL OnKillActive();
  51. virtual BOOL OnSetActive();
  52. afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar *pScrollBar);
  53. //}}AFX_MSG
  54. DECLARE_MESSAGE_MAP()
  55. BOOL m_bOldAnimatedModels;
  56. int m_nOldSequence;
  57. };
  58. #endif // OP_MODEL_H