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