0023821: Improve qmake project files for Qt samples
[occt.git] / samples / mfc / standard / 08_HLR / src / Properties / PropertiesSheet.cpp
CommitLineData
7fd59977 1// MapProperties.cpp : implementation file
2//
3
4#include "stdafx.h"
5
6#include "PropertiesSheet.h"
7
8#include "HLRApp.h"
9
10#ifdef _DEBUG
11#define new DEBUG_NEW
12#undef THIS_FILE
13static char THIS_FILE[] = __FILE__;
14#endif
15
16/////////////////////////////////////////////////////////////////////////////
17// CPropertiesSheet
18
19IMPLEMENT_DYNAMIC(CPropertiesSheet, CPropertySheet)
20
21CPropertiesSheet::CPropertiesSheet(CWnd* pParentWnd, UINT iSelectPage)
22 :CPropertySheet("View Map Properties", pParentWnd, iSelectPage)
23{
24}
25
26void CPropertiesSheet::SetViewer (Handle(V2d_Viewer) aViewer)
27{
28 AddPage(& m_pageWidthProperty);
29 m_pageWidthProperty.SetViewer(aViewer);
30
31 AddPage(& m_pageColorProperty);
32 m_pageColorProperty.SetViewer(aViewer);
33
34 AddPage(& m_pageFontProperty);
35 m_pageFontProperty.SetViewer(aViewer);
36
37 AddPage(& m_pageTypeProperty);
38 m_pageTypeProperty.SetViewer(aViewer);
39
40 AddPage(& m_pageMarkProperty);
41 m_pageMarkProperty.SetViewer(aViewer);
42
43}
44
45CPropertiesSheet::~CPropertiesSheet()
46{
47}
48
49
50BEGIN_MESSAGE_MAP(CPropertiesSheet, CPropertySheet)
51 //{{AFX_MSG_MAP(CPropertiesSheet)
52 //}}AFX_MSG_MAP
53END_MESSAGE_MAP()
54
55/////////////////////////////////////////////////////////////////////////////
56// CPropertiesSheet message handlers
57
58BOOL CPropertiesSheet::OnInitDialog()
59{
60 BOOL bResult = CPropertySheet::OnInitDialog();
61 return bResult;
62}
63