0029589: Configuration - allow MFC samples to be built when OCCT is linked statically
[occt.git] / samples / mfc / standard / Common / OCC_3dDoc.h
1 // OCC_3dDoc.h: interface for the OCC_3dDoc class.
2 //
3 //////////////////////////////////////////////////////////////////////
4
5 #if !defined(AFX_OCC_3DDOC_H__1F4065AD_39C4_11D7_8611_0060B0EE281E__INCLUDED_)
6 #define AFX_OCC_3DDOC_H__1F4065AD_39C4_11D7_8611_0060B0EE281E__INCLUDED_
7
8 #if _MSC_VER > 1000
9 #pragma once
10 #endif // _MSC_VER > 1000
11
12 #include "OCC_3dBaseDoc.h"
13 #include "ResultDialog.h"
14 #include <Standard_Macro.hxx>
15
16 // Event tracker for 3D views with support of advanced message dialog operations
17 // and dimensions dialog
18 class Standard_EXPORT OCC_3dDoc : public OCC_3dBaseDoc
19 {
20 public:
21
22   OCC_3dDoc (bool theIsResultDialog = true);
23   virtual ~OCC_3dDoc();
24
25 public: // Dialog operations
26
27   void SetDialogTitle(TCollection_AsciiString theTitle);
28   CString GetDialogText();
29
30   void PocessTextInDialog (CString theTitle, CString theMessage);
31   void PocessTextInDialog (CString theTitle, const TCollection_AsciiString& theMessage)
32   {
33     CString aMessage (theMessage.ToCString());
34     PocessTextInDialog (theTitle, aMessage);
35   }
36
37   void ClearDialog();
38   void AddTextInDialog(TCollection_AsciiString& aMessage);
39
40 protected:
41
42   afx_msg void OnObjectAddDimensions();
43   DECLARE_MESSAGE_MAP()
44
45 protected:
46
47   CResultDialog myCResultDialog;
48   CDimensionDlg myDimensionDlg;
49 };
50
51 #endif // !defined(AFX_OCC_3DDOC_H__1F4065AD_39C4_11D7_8611_0060B0EE281E__INCLUDED_)