Salome HOME
Rolling back incorrect integration
[modules/gui.git] / src / SOCC / SOCC_ViewModel.cxx
index 686cd58fc221d629928e50e0cdb89206b5addabd..b78328d7f40c2ea687c5966f5bbe4aab3376f84c 100755 (executable)
@@ -1,6 +1,7 @@
 #include "SOCC_ViewModel.h"
 
 #include "SOCC_Prs.h"
+#include "SOCC_ViewWindow.h"
 
 #include "SUIT_Session.h"
 #include "SUIT_Application.h"
@@ -578,7 +579,7 @@ bool SOCC_Viewer::getTrihedronSize( double& theNewSize, double& theSize )
   if ( aMaxSide < Ymax -Ymin ) aMaxSide = Ymax -Ymin;
   if ( aMaxSide < Zmax -Zmin ) aMaxSide = Zmax -Zmin;
 
-  float aSizeInPercents = SUIT_Session::session()->resourceMgr()->doubleValue("Viewer:TrihedronSize", 105.);
+  float aSizeInPercents = SUIT_Session::session()->resourceMgr()->doubleValue("Viewer","TrihedronSize", 105.);
 
   static float EPS = 5.0E-3;
   theSize = getTrihedron()->Size();
@@ -597,3 +598,14 @@ void SOCC_Viewer::Repaint()
 //  onAdjustTrihedron();
   getViewer3d()->Update();
 }
+
+//=======================================================================
+// name    : createView
+// Purpose : create SOCC_ViewWindow
+//=======================================================================
+SUIT_ViewWindow* SOCC_Viewer::createView( SUIT_Desktop* theDesktop )
+{
+  SOCC_ViewWindow* view = new SOCC_ViewWindow(theDesktop, this);
+  initView( view );
+  return view;
+}