Team Fortress 2 Source Code as on 22/4/2020
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.

78 lines
1.7 KiB

  1. //========= Copyright 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(void);
  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(float flFrame);
  46. // Generated message map functions
  47. //{{AFX_MSG(COP_Model)
  48. virtual BOOL OnInitDialog();
  49. virtual BOOL OnKillActive();
  50. virtual BOOL OnSetActive();
  51. afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar *pScrollBar);
  52. //}}AFX_MSG
  53. DECLARE_MESSAGE_MAP()
  54. BOOL m_bOldAnimatedModels;
  55. };
  56. #endif // OP_MODEL_H