EditConversationRemarkDialog.h 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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_EDITCONVERSATIONREMARKDIALOG_H__9FDB5AC9_9866_40F9_B912_2679C63EB92D__INCLUDED_)
  19. #define AFX_EDITCONVERSATIONREMARKDIALOG_H__9FDB5AC9_9866_40F9_B912_2679C63EB92D__INCLUDED_
  20. #if _MSC_VER > 1000
  21. #pragma once
  22. #endif // _MSC_VER > 1000
  23. #include "resource.h"
  24. #include "stringpickerdialog.h"
  25. #include "conversationremark.h"
  26. /////////////////////////////////////////////////////////////////////////////
  27. //
  28. // EditConversationRemarkDialogClass
  29. //
  30. /////////////////////////////////////////////////////////////////////////////
  31. class EditConversationRemarkDialogClass : public CDialog
  32. {
  33. // Construction
  34. public:
  35. EditConversationRemarkDialogClass(CWnd* pParent = NULL); // standard constructor
  36. // Dialog Data
  37. //{{AFX_DATA(EditConversationRemarkDialogClass)
  38. enum { IDD = IDD_EDIT_CONVERSATION_REMARK };
  39. CSpinButtonCtrl m_OratorIDSpin;
  40. //}}AFX_DATA
  41. // Overrides
  42. // ClassWizard generated virtual function overrides
  43. //{{AFX_VIRTUAL(EditConversationRemarkDialogClass)
  44. protected:
  45. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  46. //}}AFX_VIRTUAL
  47. // Implementation
  48. protected:
  49. // Generated message map functions
  50. //{{AFX_MSG(EditConversationRemarkDialogClass)
  51. virtual BOOL OnInitDialog();
  52. virtual void OnOK();
  53. //}}AFX_MSG
  54. DECLARE_MESSAGE_MAP()
  55. public:
  56. //////////////////////////////////////////////////////////////////////////
  57. // Public methods
  58. //////////////////////////////////////////////////////////////////////////
  59. void Set_Remark (const ConversationRemarkClass &remark) { Remark = remark; }
  60. const ConversationRemarkClass & Get_Remark (void) const { return Remark; }
  61. void Set_Orator_Bitmask (int mask = 0x00000001) { m_OratorBitmask = mask; }
  62. protected:
  63. //////////////////////////////////////////////////////////////////////////
  64. // Protected methods
  65. //////////////////////////////////////////////////////////////////////////
  66. //////////////////////////////////////////////////////////////////////////
  67. // Protected member data
  68. //////////////////////////////////////////////////////////////////////////
  69. int m_OratorBitmask;
  70. ConversationRemarkClass Remark;
  71. StringPickerDialogClass StringPicker;
  72. };
  73. //{{AFX_INSERT_LOCATION}}
  74. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  75. #endif // !defined(AFX_EDITCONVERSATIONREMARKDIALOG_H__9FDB5AC9_9866_40F9_B912_2679C63EB92D__INCLUDED_)