0023821: Improve qmake project files for Qt samples
[occt.git] / samples / mfc / standard / 08_HLR / src / Properties / TypePropertyPage.h
1 // TypePropertyPage.h : header file
2 //
3
4 #if !defined(AFX_TypePropertyPage_H__B6E7AAD3_DB72_11D1_8DE5_0800369C8A03__INCLUDED_)
5 #define AFX_TypePropertyPage_H__B6E7AAD3_DB72_11D1_8DE5_0800369C8A03__INCLUDED_
6
7 #if _MSC_VER >= 1000
8 #pragma once
9 #endif // _MSC_VER >= 1000
10
11 #include <resource.h>
12
13 #include "V2d_Viewer.hxx"
14 #include "TColQuantity_HArray1OfLength.hxx"
15
16 /////////////////////////////////////////////////////////////////////////////
17 // CTypePropertyPage dialog
18
19 class CTypePropertyPage : public CPropertyPage
20 {
21 private :
22     Handle(Aspect_TypeMap) myTypeMap;
23 private :
24     Handle(V2d_Viewer) myViewer;
25 public:
26     void SetViewer(Handle(V2d_Viewer) aViewer) {
27         myViewer = aViewer;
28         myTypeMap = aViewer->TypeMap();
29     };
30
31         DECLARE_DYNCREATE(CTypePropertyPage)
32
33 // Construction
34 public:
35         CTypePropertyPage();
36         ~CTypePropertyPage();
37
38 // Dialog Data
39         //{{AFX_DATA(CTypePropertyPage)
40         enum { IDD = IDD_DIALOG_Type };
41         CTabCtrl        m_TabCtrl;
42         CComboBox       m_NewEntryControl;
43
44         CString m_TypeMapSize;
45         CString m_CurrentEntryStyle;
46         CString m_CurrentEntryValue;
47         CEdit   m_NewEntryValueControl;
48         CString m_NewEntryValue;
49         //}}AFX_DATA
50
51
52 // Overrides
53         // ClassWizard generate virtual function overrides
54         //{{AFX_VIRTUAL(CTypePropertyPage)
55         public:
56         virtual BOOL OnApply();
57         protected:
58         virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
59         //}}AFX_VIRTUAL
60
61 // Implementation
62 protected:
63         // Generated message map functions
64         //{{AFX_MSG(CTypePropertyPage)
65         virtual BOOL OnInitDialog();
66         afx_msg void OnFontMapBUTTONNewEntry();
67         afx_msg void OnFontMapBUTTONUpdateCurrent();
68         afx_msg void OnChangeTypeMapEDITNewEntryValue();
69         afx_msg void OnSelchangeTypeMapTAB(NMHDR* pNMHDR, LRESULT* pResult);
70         afx_msg void OnSelchangeTypeMapCOMBONewEntryStyle();
71         //}}AFX_MSG
72         DECLARE_MESSAGE_MAP()
73 private:
74   void UpdateDisplay(int CurrentSelectionIndex);
75
76   TCollection_AsciiString BuildValuesAscii(const TColQuantity_Array1OfLength& anArray);
77   Standard_Boolean ExtractValues(TCollection_AsciiString aMessage,Handle(TColQuantity_HArray1OfLength)& anArray);
78
79 };
80
81 //{{AFX_INSERT_LOCATION}}
82 // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
83
84 #endif // !defined(AFX_TypePropertyPage_H__B6E7AAD3_DB72_11D1_8DE5_0800369C8A03__INCLUDED_)