1 #if !defined(AFX_TypePropertyPage_H__B6E7AAD3_DB72_11D1_8DE5_0800369C8A03__INCLUDED_)
2 #define AFX_TypePropertyPage_H__B6E7AAD3_DB72_11D1_8DE5_0800369C8A03__INCLUDED_
6 #endif // _MSC_VER >= 1000
7 // TypePropertyPage.h : header file
10 #include "V2d_Viewer.hxx"
11 #include "TColQuantity_HArray1OfLength.hxx"
13 /////////////////////////////////////////////////////////////////////////////
14 // CTypePropertyPage dialog
16 class CTypePropertyPage : public CPropertyPage
19 Handle(Aspect_TypeMap) myTypeMap;
21 Handle(V2d_Viewer) myViewer;
23 void SetViewer(Handle(V2d_Viewer) aViewer) {
25 myTypeMap = aViewer->TypeMap();
28 DECLARE_DYNCREATE(CTypePropertyPage)
36 //{{AFX_DATA(CTypePropertyPage)
37 enum { IDD = IDD_DIALOG_Type };
39 CComboBox m_NewEntryControl;
41 CString m_TypeMapSize;
42 CString m_CurrentEntryStyle;
43 CString m_CurrentEntryValue;
44 CEdit m_NewEntryValueControl;
45 CString m_NewEntryValue;
50 // ClassWizard generate virtual function overrides
51 //{{AFX_VIRTUAL(CTypePropertyPage)
53 virtual BOOL OnApply();
55 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
60 // Generated message map functions
61 //{{AFX_MSG(CTypePropertyPage)
62 virtual BOOL OnInitDialog();
63 afx_msg void OnFontMapBUTTONNewEntry();
64 afx_msg void OnFontMapBUTTONUpdateCurrent();
65 afx_msg void OnChangeTypeMapEDITNewEntryValue();
66 afx_msg void OnSelchangeTypeMapTAB(NMHDR* pNMHDR, LRESULT* pResult);
67 afx_msg void OnSelchangeTypeMapCOMBONewEntryStyle();
71 void UpdateDisplay(int CurrentSelectionIndex);
73 TCollection_AsciiString BuildValuesAscii(const TColQuantity_Array1OfLength& anArray);
74 Standard_Boolean ExtractValues(TCollection_AsciiString aMessage,Handle(TColQuantity_HArray1OfLength)& anArray);
78 //{{AFX_INSERT_LOCATION}}
79 // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
81 #endif // !defined(AFX_TypePropertyPage_H__B6E7AAD3_DB72_11D1_8DE5_0800369C8A03__INCLUDED_)