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.

103 lines
2.3 KiB

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================//
  6. #ifndef MATERIALDLG_H
  7. #define MATERIALDLG_H
  8. #pragma once
  9. #include "resource.h"
  10. #include "smoothinggroupmgr.h"
  11. //=============================================================================
  12. //
  13. // Face Smoothing Group Dialog
  14. //
  15. class CFaceSmoothingDlg : public CDialog
  16. {
  17. public:
  18. CFaceSmoothingDlg( CWnd *pParent = NULL );
  19. ~CFaceSmoothingDlg();
  20. void UpdateControls( void );
  21. //{{AFX_DATA( CFaceSmoothingDlg )
  22. enum { IDD = IDD_SMOOTHING_GROUPS };
  23. //}}AFX_DATA
  24. //{{AFX_VIRTUAL( CFaceSmoothingDlg )
  25. virtual BOOL OnInitDialog( void );
  26. //}}AFX_VIRTUAL
  27. protected:
  28. void InitButtonIDs( void );
  29. UINT GetSmoothingGroup( UINT uCmd );
  30. int GetActiveSmoothingGroup( void );
  31. void CheckGroupButtons( int *pGroupCounts, int nFaceCount );
  32. float GetEditBoxSmoothingAngle( void );
  33. void SetEditBoxSmoothingAngle( float flAngle );
  34. void UpdateSmoothingAngle( int *pGroupCounts, int nFaceCount );
  35. //{{AFX_MSG( CFaceSmoothingDlg )
  36. afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
  37. afx_msg void OnButtonApply( void );
  38. afx_msg BOOL OnButtonGroup( UINT uCmd );
  39. afx_msg void OnClose( void );
  40. afx_msg void OnDestroy( void );
  41. //}}AFX_MSG
  42. DECLARE_MESSAGE_MAP()
  43. private:
  44. UINT m_ButtonIDs[MAX_SMOOTHING_GROUP_COUNT+1]; // Ids
  45. CRect m_DialogPosRect; // Save/Restore the window position.
  46. CBrush m_Brush;
  47. bool m_bColorOverride;
  48. bool m_bColorSelectAll;
  49. };
  50. //=============================================================================
  51. //
  52. // Face Smoothing Group Visual Dialog
  53. //
  54. class CFaceSmoothingVisualDlg : public CDialog
  55. {
  56. public:
  57. CFaceSmoothingVisualDlg( CWnd *pParent = NULL );
  58. ~CFaceSmoothingVisualDlg();
  59. //{{AFX_DATA( CFaceSmoothingVisualDlg )
  60. enum { IDD = IDD_SMOOTHING_GROUP_VISUAL };
  61. //}}AFX_DATA
  62. //{{AFX_VIRTUAL( CFaceSmoothingVisualDlg )
  63. virtual BOOL OnInitDialog( void );
  64. //}}AFX_VIRTUAL
  65. protected:
  66. void InitButtonIDs( void );
  67. UINT GetSmoothingGroup( UINT uCmd );
  68. //{{AFX_MSG( CFaceSmoothingDlg )
  69. afx_msg BOOL OnButtonGroup( UINT uCmd );
  70. //}}AFX_MSG
  71. DECLARE_MESSAGE_MAP()
  72. private:
  73. UINT m_ButtonIDs[MAX_SMOOTHING_GROUP_COUNT+1]; // Ids
  74. };
  75. #endif // MATERIALDLG_H