OptimizingVisDialog.h 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  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. #if !defined(AFX_OPTIMIZINGISDIALOG_H__4F3E7431_C94F_11D3_A085_00104B791122__INCLUDED_)
  19. #define AFX_OPTIMIZINGVISDIALOG_H__4F3E7431_C94F_11D3_A085_00104B791122__INCLUDED_
  20. #if _MSC_VER > 1000
  21. #pragma once
  22. #endif // _MSC_VER > 1000
  23. #include "resource.h"
  24. #include "visoptprogress.h"
  25. /////////////////////////////////////////////////////////////////////////////
  26. //
  27. // OptimizingVisDialogClass dialog
  28. //
  29. /////////////////////////////////////////////////////////////////////////////
  30. class OptimizingVisDialogClass : public CDialog
  31. {
  32. // Construction
  33. public:
  34. OptimizingVisDialogClass(CWnd* pParent = NULL); // standard constructor
  35. // Dialog Data
  36. //{{AFX_DATA(OptimizingVisDialogClass)
  37. enum { IDD = IDD_OPTIMIZING_VIS };
  38. CProgressCtrl m_ProgressBar;
  39. //}}AFX_DATA
  40. // Overrides
  41. // ClassWizard generated virtual function overrides
  42. //{{AFX_VIRTUAL(OptimizingVisDialogClass)
  43. protected:
  44. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  45. virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam);
  46. //}}AFX_VIRTUAL
  47. // Implementation
  48. protected:
  49. // Generated message map functions
  50. //{{AFX_MSG(OptimizingVisDialogClass)
  51. virtual BOOL OnInitDialog();
  52. virtual void OnCancel();
  53. //}}AFX_MSG
  54. DECLARE_MESSAGE_MAP()
  55. public:
  56. /////////////////////////////////////////////////////////////
  57. // Public methods
  58. /////////////////////////////////////////////////////////////
  59. bool Was_Cancelled (void) const { return m_Cancelled; }
  60. void Set_Status_Object (VisOptProgressClass *status_object);
  61. void Set_Finished (void);
  62. /////////////////////////////////////////////////////////////
  63. // Static methods
  64. /////////////////////////////////////////////////////////////
  65. static void Optimize (void);
  66. private:
  67. /////////////////////////////////////////////////////////////
  68. // Private methods
  69. /////////////////////////////////////////////////////////////
  70. void Update_Stats (void);
  71. /////////////////////////////////////////////////////////////
  72. // Private member data
  73. /////////////////////////////////////////////////////////////
  74. bool m_Cancelled;
  75. VisOptProgressClass * m_ProgressStats;
  76. };
  77. //{{AFX_INSERT_LOCATION}}
  78. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  79. #endif // !defined(AFX_OPTIMIZINGVISDIALOG_H__4F3E7431_C94F_11D3_A085_00104B791122__INCLUDED_)