ColorSelectionDialog.h 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  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_OLORSELECTIONDIALOG_H__C0BCECAE_B6EA_11D2_9FF8_00104B791122__INCLUDED_)
  19. #define AFX_OLORSELECTIONDIALOG_H__C0BCECAE_B6EA_11D2_9FF8_00104B791122__INCLUDED_
  20. #if _MSC_VER > 1000
  21. #pragma once
  22. #endif // _MSC_VER > 1000
  23. // ColorSelectionDialog.h : header file
  24. //
  25. #include "Resource.H"
  26. #include "Vector3.H"
  27. /////////////////////////////////////////////////////////////////////////////
  28. //
  29. // ColorSelectionDialogClass dialog
  30. //
  31. class ColorSelectionDialogClass : public CDialog
  32. {
  33. // Construction
  34. public:
  35. ColorSelectionDialogClass (const Vector3 &def_color, CWnd *pParent = NULL); // standard constructor
  36. // Dialog Data
  37. //{{AFX_DATA(ColorSelectionDialogClass)
  38. enum { IDD = IDD_COLOR_SEL };
  39. CStatic m_ColorWindow;
  40. CSliderCtrl m_BlueSlider;
  41. CSliderCtrl m_GreenSlider;
  42. CSliderCtrl m_RedSlider;
  43. //}}AFX_DATA
  44. // Overrides
  45. // ClassWizard generated virtual function overrides
  46. //{{AFX_VIRTUAL(ColorSelectionDialogClass)
  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(ColorSelectionDialogClass)
  54. virtual BOOL OnInitDialog();
  55. virtual void OnOK();
  56. afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
  57. afx_msg void OnPaint();
  58. afx_msg void OnGrayscaleCheck();
  59. //}}AFX_MSG
  60. DECLARE_MESSAGE_MAP()
  61. public:
  62. ///////////////////////////////////////////////////////
  63. //
  64. // Public methods
  65. //
  66. const Vector3 & Get_Color (void) const { return m_Color; }
  67. void Set_Color (const Vector3 &color) { m_Color = color; }
  68. protected:
  69. ///////////////////////////////////////////////////////
  70. //
  71. // Inline accessors
  72. //
  73. void Paint_Color_Window (void);
  74. private:
  75. ///////////////////////////////////////////////////////
  76. //
  77. // Private member data
  78. //
  79. Vector3 m_Color;
  80. Vector3 m_PaintColor;
  81. };
  82. //{{AFX_INSERT_LOCATION}}
  83. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  84. #endif // !defined(AFX_OLORSELECTIONDIALOG_H__C0BCECAE_B6EA_11D2_9FF8_00104B791122__INCLUDED_)