]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
debug
authorisn <isn@opencascade.com>
Thu, 9 Nov 2017 09:56:04 +0000 (12:56 +0300)
committerisn <isn@opencascade.com>
Thu, 9 Nov 2017 09:56:04 +0000 (12:56 +0300)
src/HYDROGUI/HYDROGUI_ProfileDlg.cxx
src/HYDROGUI/HYDROGUI_ViewerDlg.cxx

index d95c3e0cded3e986c1fbf4f80cd186663ec59159..540949356bf39e6dbeace09641246efa03612bab 100644 (file)
 
 #include "HYDROGUI_ProfileDlg.h"
 
-#include "HYDROGUI_Module.h"
 #include "HYDROGUI_Tool.h"
 #include "HYDROGUI_AISTrihedron.h"
+#ifndef TEST_MODE
 #include "HYDROGUI_Tool2.h"
+#endif
 
 #include <CurveCreator_Widget.h>
 #include <CurveCreator_ICurve.hxx>
 #include <OCCViewer_Utilities.h>
 #include <OCCViewer_ViewManager.h>
 #include <OCCViewer_ViewFrame.h>
+
+#ifndef TEST_MODE
 #include <LightApp_Application.h>
+#endif
 
 #include <SUIT_Session.h>
 #include <SUIT_ResourceMgr.h>
index bf82bf405205ee3362f331f8af8032a645843a07..78c17941309518f8ecc560fa886f0b6afdecc111 100644 (file)
@@ -47,8 +47,11 @@ HYDROGUI_ViewerDlg::HYDROGUI_ViewerDlg( HYDROGUI_Module* theModule, const QStrin
 : HYDROGUI_InputPanel( theModule, theTitle, true, isSplitter )
 {
   SUIT_ResourceMgr* aResMgr = SUIT_Session::session()->resourceMgr();
+#ifndef TEST_MODE
   SUIT_Study* aStudy = theModule ? theModule->application()->activeStudy() : 0;
-
+#else
+  SUIT_Study* aStudy = 0;
+#endif
   myViewManager = new OCCViewer_ViewManager( aStudy, 0 );
   OCCViewer_Viewer* aViewer = new OCCViewer_Viewer( true );