]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Remove unnecessary code (it is moved to the base class)
authorvsr <vsr@opencascade.com>
Fri, 18 Jul 2008 12:44:12 +0000 (12:44 +0000)
committervsr <vsr@opencascade.com>
Fri, 18 Jul 2008 12:44:12 +0000 (12:44 +0000)
src/SPlot2d/SPlot2d_ViewModel.cxx
src/SPlot2d/SPlot2d_ViewModel.h

index 4676bc9b9004666a58a6306f35674916c3ed258a..993e6bab0a9043c45e161a126dbd37de6d116699 100644 (file)
@@ -365,34 +365,6 @@ SPlot2d_Curve* SPlot2d_Viewer::getCurveByIO( const Handle(SALOME_InteractiveObje
   return NULL;
 }
 
-/*!
-  SLOT: called when action "Clone view" is activated
-*/
-void SPlot2d_Viewer::onCloneView( Plot2d_ViewFrame* clonedVF, Plot2d_ViewFrame* newVF )
-{
-  // this code is moved on the level of base class
-  /*if( !clonedVF || !newVF )
-    return;
-
-  // 1) Copy all properties of view
-
-  newVF->copyPreferences( clonedVF );
-
-  // 2) Display all curves displayed in cloned view
-
-  CurveDict aCurves = clonedVF->getCurves();
-  CurveDict::Iterator anIt = aCurves.begin();
-  for( ; anIt != aCurves.end(); ++anIt )
-  {
-    SPlot2d_Curve* aCurve = dynamic_cast<SPlot2d_Curve*>( anIt.value() );
-    if( aCurve && clonedVF->isVisible( aCurve ) )
-      newVF->displayCurve( aCurve, false );
-  }
-  newVF->Repaint();*/
-  
-  Plot2d_Viewer::onCloneView( clonedVF, newVF );
-}
-
 /*!
   create SPlot2d_ViewWindow
 */
index 7182def582893641f2b72880c7e3f65035c49691..f12a8d601f00ccae7fb0a2dd0d931102e5a7aa2f 100644 (file)
@@ -75,9 +75,6 @@ public:
   SPlot2d_Curve*                   getCurveByIO( const Handle(SALOME_InteractiveObject)&, Plot2d_ViewFrame* = 0 );
   Plot2d_ViewFrame*                getActiveViewFrame();
   Handle(SALOME_InteractiveObject) FindIObject( const char* Entry );
-
-protected slots:
-  virtual void onCloneView( Plot2d_ViewFrame*, Plot2d_ViewFrame* );
 };