PresetRemapDialog.h 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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_PRESETREMAPDIALOG_H__2412A947_7687_4FC9_AAC5_B3585396EB33__INCLUDED_)
  19. #define AFX_PRESETREMAPDIALOG_H__2412A947_7687_4FC9_AAC5_B3585396EB33__INCLUDED_
  20. #if _MSC_VER > 1000
  21. #pragma once
  22. #endif // _MSC_VER > 1000
  23. #include "resource.h"
  24. #include "vector.h"
  25. /////////////////////////////////////////////////////////////////////////////
  26. // Forward declarations
  27. /////////////////////////////////////////////////////////////////////////////
  28. class NodeClass;
  29. /////////////////////////////////////////////////////////////////////////////
  30. //
  31. // PresetRemapDialogClass
  32. //
  33. /////////////////////////////////////////////////////////////////////////////
  34. class PresetRemapDialogClass : public CDialog
  35. {
  36. // Construction
  37. public:
  38. PresetRemapDialogClass(CWnd* pParent = NULL); // standard constructor
  39. // Dialog Data
  40. //{{AFX_DATA(PresetRemapDialogClass)
  41. enum { IDD = IDD_PRESET_REMAP_DIALOG };
  42. CListCtrl m_ListCtrl;
  43. //}}AFX_DATA
  44. // Overrides
  45. // ClassWizard generated virtual function overrides
  46. //{{AFX_VIRTUAL(PresetRemapDialogClass)
  47. protected:
  48. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  49. //}}AFX_VIRTUAL
  50. // Implementation
  51. protected:
  52. // Generated message map functions
  53. //{{AFX_MSG(PresetRemapDialogClass)
  54. virtual BOOL OnInitDialog();
  55. afx_msg void OnDblclkListCtrl(NMHDR* pNMHDR, LRESULT* pResult);
  56. afx_msg void OnDeleteitemListCtrl(NMHDR* pNMHDR, LRESULT* pResult);
  57. virtual void OnOK();
  58. //}}AFX_MSG
  59. DECLARE_MESSAGE_MAP()
  60. public:
  61. ///////////////////////////////////////////////////////////////
  62. // Public Methods
  63. ///////////////////////////////////////////////////////////////
  64. void Set_Node_list (const DynamicVectorClass<NodeClass *> &node_list) { NodeList = node_list; }
  65. private:
  66. ///////////////////////////////////////////////////////////////
  67. // Private member data
  68. ///////////////////////////////////////////////////////////////
  69. DynamicVectorClass<NodeClass *> NodeList;
  70. };
  71. //{{AFX_INSERT_LOCATION}}
  72. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  73. #endif // !defined(AFX_PRESETREMAPDIALOG_H__2412A947_7687_4FC9_AAC5_B3585396EB33__INCLUDED_)