IncludeFilesDialog.h 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  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/IncludeFilesDialog.h $Modtime:: $*
  25. * *
  26. * $Revision:: 2 $*
  27. * *
  28. *---------------------------------------------------------------------------------------------*
  29. * Functions: *
  30. * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  31. #if !defined(AFX_INCLUDEFILESDIALOG_H__D3883AD0_DBF1_11D2_A00E_00104B791122__INCLUDED_)
  32. #define AFX_INCLUDEFILESDIALOG_H__D3883AD0_DBF1_11D2_A00E_00104B791122__INCLUDED_
  33. #if _MSC_VER > 1000
  34. #pragma once
  35. #endif // _MSC_VER > 1000
  36. #include "FilePicker.H"
  37. /////////////////////////////////////////////////////////////////////////////
  38. //
  39. // IncludeFilesDialogClass
  40. //
  41. class IncludeFilesDialogClass : public CDialog
  42. {
  43. // Construction
  44. public:
  45. IncludeFilesDialogClass(CWnd* pParent = NULL); // standard constructor
  46. // Dialog Data
  47. //{{AFX_DATA(IncludeFilesDialogClass)
  48. enum { IDD = IDD_ALWAYS };
  49. CTreeCtrl m_IncludesTreeCtrl;
  50. //}}AFX_DATA
  51. // Overrides
  52. // ClassWizard generated virtual function overrides
  53. //{{AFX_VIRTUAL(IncludeFilesDialogClass)
  54. protected:
  55. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  56. //}}AFX_VIRTUAL
  57. // Implementation
  58. protected:
  59. // Generated message map functions
  60. //{{AFX_MSG(IncludeFilesDialogClass)
  61. virtual BOOL OnInitDialog();
  62. virtual void OnOK();
  63. afx_msg void OnSelchangedIncludeTree(NMHDR* pNMHDR, LRESULT* pResult);
  64. afx_msg void OnChangeSpecEdit();
  65. afx_msg void OnAddRemoveButton();
  66. afx_msg void OnDestroy();
  67. //}}AFX_MSG
  68. DECLARE_MESSAGE_MAP()
  69. protected:
  70. ////////////////////////////////////////////////////////
  71. //
  72. // Protected member data
  73. //
  74. void Update_Add_Remove_Button (void);
  75. HTREEITEM Find_Spec (LPCTSTR filespec, HTREEITEM hroot);
  76. private:
  77. ////////////////////////////////////////////////////////
  78. //
  79. // Private member data
  80. //
  81. HTREEITEM m_hGlobalFolder;
  82. HTREEITEM m_hLevelFolder;
  83. FilePickerClass m_FilePicker;
  84. HTREEITEM m_CurrentItem;
  85. };
  86. //{{AFX_INSERT_LOCATION}}
  87. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  88. #endif // !defined(AFX_INCLUDEFILESDIALOG_H__D3883AD0_DBF1_11D2_A00E_00104B791122__INCLUDED_)