]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
0020938: EDF 1450 GEOM: center of zoom
authorvsr <vsr@opencascade.com>
Tue, 7 Dec 2010 11:30:33 +0000 (11:30 +0000)
committervsr <vsr@opencascade.com>
Tue, 7 Dec 2010 11:30:33 +0000 (11:30 +0000)
src/OCCViewer/OCCViewer_ViewFrame.cxx
src/OCCViewer/OCCViewer_ViewFrame.h
src/OCCViewer/OCCViewer_ViewWindow.h

index e0eedf65faa0cc142b213b3cd4549a3224d0fa42..57d135544d95baac055f8b58577dfde6e1ef3202 100644 (file)
@@ -161,6 +161,13 @@ void OCCViewer_ViewFrame::setInteractionStyle( const int i )
   }
 }
 
+//**************************************************************************************
+void OCCViewer_ViewFrame::setZoomingStyle( const int i ) 
+{ 
+  foreach (OCCViewer_ViewWindow* aView, myViews) {
+    aView->setZoomingStyle(i); 
+  }
+}
   
 //**************************************************************************************
 void OCCViewer_ViewFrame::connectViewSignals(OCCViewer_ViewWindow* theView)
index 19212da77efbc7f8056b1855c70a32baf6dc35c3..16db7560774a415dedb69f33398be6a355cab70a 100644 (file)
@@ -67,6 +67,9 @@ public:
   virtual int  interactionStyle() const { return getView(MAIN_VIEW)->interactionStyle(); }
   virtual void setInteractionStyle( const int i );
 
+  virtual int  zoomingStyle() const { return getView(MAIN_VIEW)->zoomingStyle(); }
+  virtual void setZoomingStyle( const int );
+
   virtual void setViewManager( SUIT_ViewManager* );
 
   virtual bool eventFilter(QObject* watched, QEvent* e) { return SUIT_ViewWindow::eventFilter(watched, e); }
index 3837db444ab77f3431e5b3c28b8af9007a13bf42..6dbbd582be756f4b083207b63279463021c256cd 100755 (executable)
@@ -97,8 +97,8 @@ public:
   virtual int                     interactionStyle() const;
   virtual void                    setInteractionStyle( const int );
  
-  int                     zoomingStyle() const;
-  void                    setZoomingStyle( const int );
+  virtual int                     zoomingStyle() const;
+  virtual void                    setZoomingStyle( const int );
  
   void setTransformEnabled( const OperationType, const bool );
   bool transformEnabled( const OperationType ) const;