1 // TypePropertyPage.h : header file
4 #if !defined(AFX_TypePropertyPage_H__B6E7AAD3_DB72_11D1_8DE5_0800369C8A03__INCLUDED_)
5 #define AFX_TypePropertyPage_H__B6E7AAD3_DB72_11D1_8DE5_0800369C8A03__INCLUDED_
9 #endif // _MSC_VER >= 1000
13 #include "V2d_Viewer.hxx"
14 #include "TColQuantity_HArray1OfLength.hxx"
16 /////////////////////////////////////////////////////////////////////////////
17 // CTypePropertyPage dialog
19 class CTypePropertyPage : public CPropertyPage
22 Handle(Aspect_TypeMap) myTypeMap;
24 Handle(V2d_Viewer) myViewer;
26 void SetViewer(Handle(V2d_Viewer) aViewer) {
28 myTypeMap = aViewer->TypeMap();
31 DECLARE_DYNCREATE(CTypePropertyPage)
39 //{{AFX_DATA(CTypePropertyPage)
40 enum { IDD = IDD_DIALOG_Type };
42 CComboBox m_NewEntryControl;
44 CString m_TypeMapSize;
45 CString m_CurrentEntryStyle;
46 CString m_CurrentEntryValue;
47 CEdit m_NewEntryValueControl;
48 CString m_NewEntryValue;
53 // ClassWizard generate virtual function overrides
54 //{{AFX_VIRTUAL(CTypePropertyPage)
56 virtual BOOL OnApply();
58 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
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();
74 void UpdateDisplay(int CurrentSelectionIndex);
76 TCollection_AsciiString BuildValuesAscii(const TColQuantity_Array1OfLength& anArray);
77 Standard_Boolean ExtractValues(TCollection_AsciiString aMessage,Handle(TColQuantity_HArray1OfLength)& anArray);
81 //{{AFX_INSERT_LOCATION}}
82 // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
84 #endif // !defined(AFX_TypePropertyPage_H__B6E7AAD3_DB72_11D1_8DE5_0800369C8A03__INCLUDED_)