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