GeneratingEdgeSampledVisDialog.h 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. /*
  2. ** Command & Conquer Renegade(tm)
  3. ** Copyright 2025 Electronic Arts Inc.
  4. **
  5. ** This program is free software: you can redistribute it and/or modify
  6. ** it under the terms of the GNU General Public License as published by
  7. ** the Free Software Foundation, either version 3 of the License, or
  8. ** (at your option) any later version.
  9. **
  10. ** This program is distributed in the hope that it will be useful,
  11. ** but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. ** GNU General Public License for more details.
  14. **
  15. ** You should have received a copy of the GNU General Public License
  16. ** along with this program. If not, see <http://www.gnu.org/licenses/>.
  17. */
  18. /***********************************************************************************************
  19. *** C O N F I D E N T I A L --- W E S T W O O D S T U D I O S ***
  20. ***********************************************************************************************
  21. * *
  22. * Project Name : LevelEdit *
  23. * *
  24. * $Archive:: /Commando/Code/Tools/LevelEdit/GeneratingEdgeSampledVisDialog.h $*
  25. * *
  26. * Author:: Patrick Smith *
  27. * *
  28. * $Modtime:: 7/21/00 9:05a $*
  29. * *
  30. * $Revision:: 3 $*
  31. * *
  32. *---------------------------------------------------------------------------------------------*
  33. * Functions: *
  34. * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  35. #if !defined(AFX_GENERATINGEDGESAMPLEDVISDIALOG_H__237F8914_2CCD_4BF4_B2E7_5BF5C975D44F__INCLUDED_)
  36. #define AFX_GENERATINGEDGESAMPLEDVISDIALOG_H__237F8914_2CCD_4BF4_B2E7_5BF5C975D44F__INCLUDED_
  37. #if _MSC_VER > 1000
  38. #pragma once
  39. #endif // _MSC_VER > 1000
  40. #include "resource.h"
  41. /////////////////////////////////////////////////////////////////////////////
  42. // Forward declarations
  43. /////////////////////////////////////////////////////////////////////////////
  44. class VisGenProgressClass;
  45. /////////////////////////////////////////////////////////////////////////////
  46. //
  47. // GeneratingEdgeSampledVisDialogClass
  48. //
  49. /////////////////////////////////////////////////////////////////////////////
  50. class GeneratingEdgeSampledVisDialogClass : public CDialog
  51. {
  52. // Construction
  53. public:
  54. GeneratingEdgeSampledVisDialogClass(CWnd* pParent = NULL); // standard constructor
  55. // Dialog Data
  56. //{{AFX_DATA(GeneratingEdgeSampledVisDialogClass)
  57. enum { IDD = IDD_GENERATING_EDGE_SAMPLED_VIS };
  58. CProgressCtrl m_ProgressCtrl;
  59. //}}AFX_DATA
  60. // Overrides
  61. // ClassWizard generated virtual function overrides
  62. //{{AFX_VIRTUAL(GeneratingEdgeSampledVisDialogClass)
  63. protected:
  64. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  65. //}}AFX_VIRTUAL
  66. // Implementation
  67. protected:
  68. // Generated message map functions
  69. //{{AFX_MSG(GeneratingEdgeSampledVisDialogClass)
  70. virtual BOOL OnInitDialog();
  71. afx_msg void OnTimer(UINT nIDEvent);
  72. virtual void OnCancel();
  73. //}}AFX_MSG
  74. DECLARE_MESSAGE_MAP()
  75. public:
  76. ///////////////////////////////////////////////////////////////////////
  77. // Public methods
  78. ///////////////////////////////////////////////////////////////////////
  79. //
  80. // Accessors
  81. //
  82. void Set_Progress_Obj (VisGenProgressClass *obj);
  83. VisGenProgressClass * Get_Progress_Obj (void) const { return m_ProgressObj; }
  84. void Set_Finished (bool is_finished);
  85. void Enable_Farm_Mode (bool onoff) { m_FarmMode = onoff; }
  86. //
  87. // Static methods
  88. //
  89. static GeneratingEdgeSampledVisDialogClass *Display (void);
  90. private:
  91. ///////////////////////////////////////////////////////////////////////
  92. // Private methods
  93. ///////////////////////////////////////////////////////////////////////
  94. void Update_Stats (void);
  95. void End_Dialog (void);
  96. ///////////////////////////////////////////////////////////////////////
  97. // Private member data
  98. ///////////////////////////////////////////////////////////////////////
  99. VisGenProgressClass * m_ProgressObj;
  100. bool m_IsCancelled;
  101. bool m_IsFinished;
  102. DWORD m_StartTime;
  103. bool m_FarmMode;
  104. CString m_StatusFilename;
  105. CString m_StatusSection;
  106. };
  107. //{{AFX_INSERT_LOCATION}}
  108. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  109. #endif // !defined(AFX_GENERATINGEDGESAMPLEDVISDIALOG_H__237F8914_2CCD_4BF4_B2E7_5BF5C975D44F__INCLUDED_)