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.

134 lines
3.4 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. // QC_EyesDlg.h : header file
  3. //
  4. #if !defined(AFX_QC_EYESDLG_H__9130E22D_05ED_4851_960C_38D90DA94967__INCLUDED_)
  5. #define AFX_QC_EYESDLG_H__9130E22D_05ED_4851_960C_38D90DA94967__INCLUDED_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. class CDialogParams
  10. {
  11. public:
  12. float m_flLeftEye[3];
  13. float m_flRightEye[3];
  14. float m_flIrisSize;
  15. float m_flEyeballSize;
  16. float m_flLeftUpperLidRaised;
  17. float m_flLeftUpperLidNeutral;
  18. float m_flLeftUpperLidLowered;
  19. float m_flLeftLowerLidRaised;
  20. float m_flLeftLowerLidNeutral;
  21. float m_flLeftLowerLidLowered;
  22. float m_flRightUpperLidRaised;
  23. float m_flRightUpperLidNeutral;
  24. float m_flRightUpperLidLowered;
  25. float m_flRightLowerLidRaised;
  26. float m_flRightLowerLidNeutral;
  27. float m_flRightLowerLidLowered;
  28. char m_ReferenceFilename[1024];
  29. char m_ExpressionsFilename[1024];
  30. char m_ModelFilename[1024];
  31. char m_EyeballPrefix[1024]; // eyeball_ or dark_eyeball_
  32. char m_PupilPrefix[1024]; // pupil_ or grn_pupil_ or bl_pupil_
  33. };
  34. /////////////////////////////////////////////////////////////////////////////
  35. // CQC_EyesDlg dialog
  36. class CQC_EyesDlg : public CDialog
  37. {
  38. // Construction
  39. public:
  40. CQC_EyesDlg(CWnd* pParent = NULL); // standard constructor
  41. // Dialog Data
  42. //{{AFX_DATA(CQC_EyesDlg)
  43. enum { IDD = IDD_QC_EYES_DIALOG };
  44. CButton m_IndependentLeftLidControl;
  45. CStatic m_PictureControl;
  46. //}}AFX_DATA
  47. // ClassWizard generated virtual function overrides
  48. //{{AFX_VIRTUAL(CQC_EyesDlg)
  49. protected:
  50. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  51. //}}AFX_VIRTUAL
  52. // Implementation
  53. protected:
  54. HICON m_hIcon;
  55. void GenerateQCText();
  56. void AddText( const char *pFormat, ... );
  57. bool IsOptionChecked( UINT option );
  58. float GetDlgItemFloat( UINT id );
  59. void GetDialogParams( CDialogParams &p );
  60. void SetupBitmapLabel( UINT iBitmapResourceID, const char *pString, ... );
  61. HWND m_hOutputText;
  62. // Cached list of bitmaps.
  63. class CBitmapRef
  64. {
  65. public:
  66. UINT m_iResource;
  67. HBITMAP m_hBitmap;
  68. CBitmapRef *m_pNext;
  69. };
  70. CBitmapRef *m_pBitmapHead;
  71. HBITMAP GetCachedBitmap( UINT id );
  72. size_t m_BufSize;
  73. char *m_Buf;
  74. bool IsIndependentLeftLidControlEnabled();
  75. bool CheckNumericInputs();
  76. // Generated message map functions
  77. //{{AFX_MSG(CQC_EyesDlg)
  78. virtual BOOL OnInitDialog();
  79. afx_msg void OnPaint();
  80. afx_msg HCURSOR OnQueryDragIcon();
  81. afx_msg void OnCreateQcText();
  82. afx_msg void OnIrisColorBrown();
  83. afx_msg void OnIrisColorGreen();
  84. afx_msg void OnIrisColorBlue();
  85. afx_msg void OnEyeColorDark();
  86. afx_msg void OnEyeColorLight();
  87. afx_msg void OnSetfocusRightEyeX();
  88. afx_msg void OnSetfocusRightEyeY();
  89. afx_msg void OnSetfocusRightEyeZ();
  90. afx_msg void OnSetfocusLeftEyeX();
  91. afx_msg void OnSetfocusLeftEyeY();
  92. afx_msg void OnSetfocusLeftEyeZ();
  93. afx_msg void OnSetfocusUpperLidLowered();
  94. afx_msg void OnSetfocusUpperLidNeutral();
  95. afx_msg void OnSetfocusUpperLidRaised();
  96. afx_msg void OnSetfocusLowerLidLowered();
  97. afx_msg void OnSetfocusLowerLidNeutral();
  98. afx_msg void OnSetfocusLowerLidRaised();
  99. afx_msg void OnCopyTextToClipboard();
  100. afx_msg void OnDefaultControls();
  101. afx_msg void OnAdvancedControls();
  102. afx_msg void OnLeftLidControl();
  103. //}}AFX_MSG
  104. DECLARE_MESSAGE_MAP()
  105. };
  106. //{{AFX_INSERT_LOCATION}}
  107. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  108. #endif // !defined(AFX_QC_EYESDLG_H__9130E22D_05ED_4851_960C_38D90DA94967__INCLUDED_)