0023821: Improve qmake project files for Qt samples
[occt.git] / samples / mfc / standard / 03_Viewer2d / src / Properties / WidthPropertyPage.h
1 #if !defined(AFX_WIDTHPROPERTY_H__0F6C04B3_D5DB_11D1_8DDF_0800369C8A03__INCLUDED_)
2 #define AFX_WIDTHPROPERTY_H__0F6C04B3_D5DB_11D1_8DDF_0800369C8A03__INCLUDED_
3
4 #if _MSC_VER >= 1000
5 #pragma once
6 #endif // _MSC_VER >= 1000
7 // WidthProperty.h : header file
8 //
9 #include "Aspect_WidthMap.hxx"
10 /////////////////////////////////////////////////////////////////////////////
11 // CWidthPropertyPage dialog
12
13 class CWidthPropertyPage : public CPropertyPage
14 {
15         DECLARE_DYNCREATE(CWidthPropertyPage)
16
17 private :
18     Handle(Aspect_WidthMap) myWidthMap;
19 private :
20     Handle(V2d_Viewer) myViewer;
21 public:
22     void SetViewer(Handle(V2d_Viewer) aViewer) {
23         myViewer = aViewer;
24         myWidthMap = aViewer->WidthMap();
25     };
26
27 // Construction
28 public:
29         CWidthPropertyPage();
30         ~CWidthPropertyPage();
31
32 // Dialog Data
33         //{{AFX_DATA(CWidthPropertyPage)
34         enum { IDD = IDD_DIALOG_Width };
35         CString   m_WidthMapSize;
36         CTabCtrl  m_TabCtrl;
37         CString   m_EntryType;
38         CString   m_EntryWidth;
39         CComboBox m_NewEntryType;
40         CEdit     m_NewEntryWidthControl;
41         double    m_NewEntryWidth;
42         //}}AFX_DATA
43
44
45 // Overrides
46         // ClassWizard generate virtual function overrides
47         //{{AFX_VIRTUAL(CWidthPropertyPage)
48         public:
49         virtual BOOL OnApply();
50         protected:
51         virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
52         //}}AFX_VIRTUAL
53
54 // Implementation
55 protected:
56         // Generated message map functions
57         //{{AFX_MSG(CWidthPropertyPage)
58         afx_msg void OnSelchangeDialogWidthTAB(NMHDR* pNMHDR, LRESULT* pResult);
59         virtual BOOL OnInitDialog();
60         afx_msg void OnWidthMapBUTTONAddNewEntry();
61         afx_msg void OnSelchangeWidthMapCOMBONewEntryType();
62         afx_msg void OnWidthMapBUTTONUpdateCurrentEntry();
63         //}}AFX_MSG
64         DECLARE_MESSAGE_MAP()
65
66 private:
67   void UpdateDisplay(int CurrentSelectionIndex);
68 };
69
70 //{{AFX_INSERT_LOCATION}}
71 // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
72
73 #endif // !defined(AFX_WIDTHPROPERTY_H__0F6C04B3_D5DB_11D1_8DDF_0800369C8A03__INCLUDED_)