Integration of OCCT 6.5.0 from SVN
[occt.git] / samples / mfc / standard / 04_Viewer3d / src / OffsetDlg.h
1 #if !defined(AFX_OFFSETDLG_H__9E963234_B2CB_11D8_8CF3_00047571ABCA__INCLUDED_)
2 #define AFX_OFFSETDLG_H__9E963234_B2CB_11D8_8CF3_00047571ABCA__INCLUDED_
3
4 #if _MSC_VER > 1000
5 #pragma once
6 #endif // _MSC_VER > 1000
7 // offsetdlg.h : header file
8 //
9
10 #include "Viewer3dDoc.h"
11
12 class CViewer3dDoc;
13 /////////////////////////////////////////////////////////////////////////////
14 // COffsetDlg dialog
15
16 class COffsetDlg : public CDialog
17 {
18 // Construction
19 public:
20         void UpdateValues();
21         void SetOffsets(Standard_Real theFactor, Standard_Real theUnits);
22         COffsetDlg(     CViewer3dDoc* theDoc, CWnd* pParent = NULL);
23
24 // Dialog Data
25         //{{AFX_DATA(COffsetDlg)
26         enum { IDD = IDD_SETOFFSETS };
27         CSliderCtrl     m_UnitsSlidCtrl;
28         CSliderCtrl     m_FactorSlidCtrl;
29         Standard_Real           m_Factor;
30         Standard_Real           m_Units;
31         //}}AFX_DATA
32
33
34 // Overrides
35         // ClassWizard generated virtual function overrides
36         //{{AFX_VIRTUAL(COffsetDlg)
37         protected:
38         virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
39         //}}AFX_VIRTUAL
40
41 // Implementation
42 protected:
43
44         // Generated message map functions
45         //{{AFX_MSG(COffsetDlg)
46         virtual BOOL OnInitDialog();
47         afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
48         afx_msg void OnChangeEditOffsetFactor();
49         afx_msg void OnChangeEditOffsetUnits();
50         //}}AFX_MSG
51         DECLARE_MESSAGE_MAP()
52
53         CViewer3dDoc* myDoc;
54
55 };
56
57 //{{AFX_INSERT_LOCATION}}
58 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
59
60 #endif // !defined(AFX_OFFSETDLG_H__9E963234_B2CB_11D8_8CF3_00047571ABCA__INCLUDED_)