UpdatePresetDialog.h 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  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/UpdatePresetDialog.h $Modtime:: $*
  25. * *
  26. * $Revision:: 2 $*
  27. * *
  28. *---------------------------------------------------------------------------------------------*
  29. * Functions: *
  30. * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  31. #if !defined(AFX_UPDATEPRESETDIALOG_H__E2337FFD_C5CF_11D2_9FFA_00104B791122__INCLUDED_)
  32. #define AFX_UPDATEPRESETDIALOG_H__E2337FFD_C5CF_11D2_9FFA_00104B791122__INCLUDED_
  33. #if _MSC_VER > 1000
  34. #pragma once
  35. #endif // _MSC_VER > 1000
  36. #include "resource.h"
  37. #include "listtypes.h"
  38. //
  39. // Forward delcarations
  40. //
  41. class PresetClass;
  42. class SpecSheetClass;
  43. /////////////////////////////////////////////////////////////////////////////
  44. //
  45. // UpdatePresetDialogClass dialog
  46. //
  47. /////////////////////////////////////////////////////////////////////////////
  48. class UpdatePresetDialogClass : public CDialog
  49. {
  50. // Construction
  51. public:
  52. UpdatePresetDialogClass (PresetClass *preset, CWnd* pParent = NULL);
  53. // Dialog Data
  54. //{{AFX_DATA(UpdatePresetDialogClass)
  55. enum { IDD = IDD_UPDATE_VSS_ASSET };
  56. // NOTE: the ClassWizard will add data members here
  57. //}}AFX_DATA
  58. // Overrides
  59. // ClassWizard generated virtual function overrides
  60. //{{AFX_VIRTUAL(UpdatePresetDialogClass)
  61. protected:
  62. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  63. //}}AFX_VIRTUAL
  64. // Implementation
  65. protected:
  66. // Generated message map functions
  67. //{{AFX_MSG(UpdatePresetDialogClass)
  68. virtual BOOL OnInitDialog();
  69. afx_msg void OnBrowse();
  70. afx_msg void OnChangeFilenameEdit();
  71. virtual void OnOK();
  72. //}}AFX_MSG
  73. DECLARE_MESSAGE_MAP()
  74. protected:
  75. //////////////////////////////////////////////////////////////////////
  76. // Protected methods
  77. //////////////////////////////////////////////////////////////////////
  78. void Update_INI (LPCTSTR rel_folder);
  79. private:
  80. //////////////////////////////////////////////////////////////////////
  81. // Private member data
  82. //////////////////////////////////////////////////////////////////////
  83. PresetClass * m_Preset;
  84. CString m_ModelFileName;
  85. CString m_ModelLocalPath;
  86. STRING_LIST m_LocalFileList;
  87. SpecSheetClass * m_ParamSheet;
  88. };
  89. //{{AFX_INSERT_LOCATION}}
  90. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  91. #endif // !defined(AFX_UPDATEPRESETDIALOG_H__E2337FFD_C5CF_11D2_9FFA_00104B791122__INCLUDED_)