InsertSolveDialog.h 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  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. *** Confidential - Westwood Studios ***
  20. ***********************************************************************************************
  21. * *
  22. * Project Name : LightMap *
  23. * *
  24. * $Archive:: /Commando/Code/Tool $*
  25. * *
  26. * $Author:: Ian_l $*
  27. * *
  28. * $Modtime:: 1/24/01 3:29p $*
  29. * *
  30. * $Revision:: 3 $*
  31. * *
  32. *---------------------------------------------------------------------------------------------*
  33. * Functions: *
  34. * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  35. #if !defined(AFX_INSERTSOLVEDIALOG_H__6F280B62_836D_11D4_A3D2_009027447394__INCLUDED_)
  36. #define AFX_INSERTSOLVEDIALOG_H__6F280B62_836D_11D4_A3D2_009027447394__INCLUDED_
  37. #if _MSC_VER > 1000
  38. #pragma once
  39. #endif // _MSC_VER > 1000
  40. class InsertSolveDialog : public CDialog
  41. {
  42. // Construction
  43. public:
  44. InsertSolveDialog (const char *initialpathname, CWnd* pParent = NULL);
  45. ~InsertSolveDialog() {
  46. if (FileListBuffer != NULL) delete [] FileListBuffer;
  47. if (InclusionString != NULL) delete [] InclusionString;
  48. }
  49. char *Directory_Name() {return (DirectoryName);}
  50. char *Filename_List() {return (FilenameList);}
  51. bool Apply_Selective() {return (ApplySelective);}
  52. bool Invert_Selection() {return (InvertSelection);}
  53. bool Blend_Noise() {return (BlendNoise);}
  54. char *Inclusion_String() {return (InclusionString);}
  55. // Dialog Data
  56. //{{AFX_DATA(InsertSolveDialog)
  57. enum { IDD = IDD_INSERT_SOLVE };
  58. // NOTE: the ClassWizard will add data members here
  59. //}}AFX_DATA
  60. // Overrides
  61. // ClassWizard generated virtual function overrides
  62. //{{AFX_VIRTUAL(InsertSolveDialog)
  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(InsertSolveDialog)
  70. afx_msg void OnBrowse();
  71. afx_msg void OnApplySelective();
  72. afx_msg void OnBlendNoise();
  73. afx_msg void OnChangeInclusionString();
  74. afx_msg void OnMoreOptions();
  75. virtual BOOL OnInitDialog();
  76. afx_msg void OnContaining();
  77. afx_msg void OnNotContaining();
  78. //}}AFX_MSG
  79. DECLARE_MESSAGE_MAP()
  80. const char *InitialPathname; // Pathname used to indicate default browsing directory.
  81. char DirectoryName [_MAX_DIR]; // Directory containing solve files.
  82. char *FileListBuffer; // Buffer to store list of solve filenames.
  83. char *FilenameList; // Ptr to list of solve filenames (separated by null terminating character).
  84. bool ApplySelective;
  85. bool InvertSelection;
  86. bool BlendNoise;
  87. char *InclusionString;
  88. };
  89. //{{AFX_INSERT_LOCATION}}
  90. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  91. #endif // !defined(AFX_INSERTSOLVEDIALOG_H__6F280B62_836D_11D4_A3D2_009027447394__INCLUDED_)