0023821: Improve qmake project files for Qt samples
[occt.git] / samples / mfc / standard / 08_HLR / src / Properties / ColorPropertyPage.h
CommitLineData
7fd59977 1// ColorPropertyPage.h : header file
2//
3
4#if !defined(AFX_ColorPropertyPage_H__A815F7A3_D51B_11D1_8DDE_0800369C8A03__INCLUDED_)
5#define AFX_ColorPropertyPage_H__A815F7A3_D51B_11D1_8DDE_0800369C8A03__INCLUDED_
6
7#if _MSC_VER >= 1000
8#pragma once
9#endif // _MSC_VER >= 1000
10
11#include "Aspect_ColorMap.hxx"
12#include <resource.h>
13
14/////////////////////////////////////////////////////////////////////////////
15// CColorPropertyPage dialog
16
17class CColorPropertyPage : public CPropertyPage
18{
19 DECLARE_DYNCREATE(CColorPropertyPage)
20
21private :
22 Handle(Aspect_ColorMap) myColorMap;
23private :
24 Handle(V2d_Viewer) myViewer;
25public:
26 void SetViewer(Handle(V2d_Viewer) aViewer) {
27 myViewer = aViewer;
28 myColorMap = aViewer->ColorMap();
29 };
30
31
32// Construction
33public:
34 CColorPropertyPage();
35 ~CColorPropertyPage();
36
37// Dialog Data
38 //{{AFX_DATA(CColorPropertyPage)
39 enum { IDD = IDD_DIALOG_Color };
40 CComboBox m_NewEntryColorNameCtrl;
41 CTabCtrl m_TabCtrl;
42 CString m_ColorMapSize ;
43 CString m_ColorMapType ;
44 CString m_CurrentEntryRed;
45 CString m_CurrentEntryGreen;
46 CString m_CurrentEntryBlue;
47 CString m_NearsetColorName;
48 double m_NewEntryRed;
49 double m_NewEntryBlue;
50 double m_NewEntryGreen;
51 //}}AFX_DATA
52
53
54// Overrides
55 // ClassWizard generate virtual function overrides
56 //{{AFX_VIRTUAL(CColorPropertyPage)
57 public:
58 virtual BOOL OnApply();
59 protected:
60 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
61 //}}AFX_VIRTUAL
62
63// Implementation
64protected:
65 // Generated message map functions
66 //{{AFX_MSG(CColorPropertyPage)
67 virtual BOOL OnInitDialog();
68 afx_msg void OnSelchangeColorMapTAB(NMHDR* pNMHDR, LRESULT* pResult);
69 afx_msg void OnSelchangeColorMapCOMBONewEntryColorName();
70 afx_msg void OnColorMapBUTTONUpdateCurrentEntry();
71 afx_msg void OnColorMapBUTTONNewColorCubeColorMap();
72 afx_msg void OnColorMapBUTTONNewGenericColorMap();
73 afx_msg void OnColorMapBUTTONNewColorRampColorMap();
74 afx_msg void OnColorMapBUTTONNewEntryEditColor();
75 afx_msg void OnColorMapBUTTONAddNewEntry();
76 //}}AFX_MSG
77 DECLARE_MESSAGE_MAP()
78
79private:
80 void UpdateDisplay(int CurrentSelectionIndex);
81};
82
83//{{AFX_INSERT_LOCATION}}
84// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
85
86#endif // !defined(AFX_ColorPropertyPage_H__A815F7A3_D51B_11D1_8DDE_0800369C8A03__INCLUDED_)