Integration of OCCT 6.5.0 from SVN
[occt.git] / samples / mfc / standard / 08_HLR / src / Properties / MarkPropertyPage.h
1 // MarkPropertyPage.h : header file
2 //
3
4 #if !defined(AFX_MarkPropertyPage_H__B6E7AAD3_DB72_11D1_8DE5_0800369C8A03__INCLUDED_)
5 #define AFX_MarkPropertyPage_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_Array1OfLength.hxx"
15 #include "TColQuantity_HArray1OfLength.hxx"
16 #include "TColStd_Array1OfBoolean.hxx"
17
18 /////////////////////////////////////////////////////////////////////////////
19 // CMarkPropertyPage dialog
20
21 class CMarkPropertyPage : public CPropertyPage
22 {
23 private :
24     Handle(Aspect_MarkMap) myMarkMap;
25 private :
26     Handle(V2d_Viewer) myViewer;
27 public:
28     void SetViewer(Handle(V2d_Viewer) aViewer) {
29         myViewer = aViewer;
30         myMarkMap = aViewer->MarkMap();
31     };
32
33         DECLARE_DYNCREATE(CMarkPropertyPage)
34
35 // Construction
36 public:
37         CMarkPropertyPage();
38         ~CMarkPropertyPage();
39
40 // Dialog Data
41         //{{AFX_DATA(CMarkPropertyPage)
42         enum { IDD = IDD_DIALOG_Mark };
43         CTabCtrl        m_TabCtrl;
44         CComboBox       m_NewEntryControl;
45
46         CString m_MarkMapSize;
47         CString m_CurrentEntryStyle;
48         CString m_CurrentEntryXValue;
49         CString m_CurrentEntryYValue;
50         CString m_CurrentEntrySValue;
51         //}}AFX_DATA
52
53
54 // Overrides
55         // ClassWizard generate virtual function overrides
56         //{{AFX_VIRTUAL(CMarkPropertyPage)
57         public:
58         virtual BOOL OnApply();
59         protected:
60         virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
61         //}}AFX_VIRTUAL
62
63 // Implementation
64 protected:
65         // Generated message map functions
66         //{{AFX_MSG(CMarkPropertyPage)
67         virtual BOOL OnInitDialog();
68         afx_msg void OnSelchangeMarkMapTAB(NMHDR* pNMHDR, LRESULT* pResult);
69         //}}AFX_MSG
70         DECLARE_MESSAGE_MAP()
71 private:
72   void UpdateDisplay(int CurrentSelectionIndex);
73
74   TCollection_AsciiString BuildValuesAscii(const TShort_Array1OfShortReal& anArray);
75   TCollection_AsciiString BuildValuesAscii(const TColStd_Array1OfBoolean& anArray);
76
77 };
78
79 //{{AFX_INSERT_LOCATION}}
80 // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
81
82 #endif // !defined(AFX_MarkPropertyPage_H__B6E7AAD3_DB72_11D1_8DE5_0800369C8A03__INCLUDED_)