X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FXGUI%2FXGUI_Viewer.cpp;h=23560ca86031d369571e2dcf5d864eb5a43d675e;hb=d86c77d1c6210bbe04fbc3e5b00f9e212e1ec930;hp=0d93d6cc04f8eeee6f995deb253278f79ac49eb9;hpb=de072782c67b5ed9db59be608e17a549912438aa;p=modules%2Fshaper.git diff --git a/src/XGUI/XGUI_Viewer.cpp b/src/XGUI/XGUI_Viewer.cpp index 0d93d6cc0..23560ca86 100644 --- a/src/XGUI/XGUI_Viewer.cpp +++ b/src/XGUI/XGUI_Viewer.cpp @@ -190,6 +190,10 @@ QMdiSubWindow* XGUI_Viewer::createView(V3d_TypeOfView theType) return aWnd; } +XGUI_ViewWindow* XGUI_Viewer::activeViewWindow() const +{ + return dynamic_cast(myActiveView->widget()); +} void XGUI_Viewer::getSelectedObjects(AIS_ListOfInteractive& theList) { @@ -502,8 +506,10 @@ void XGUI_Viewer::onMouseMove(XGUI_ViewWindow* theWindow, QMouseEvent* theEvent) XGUI_ViewPort* aViewPort = theWindow->viewPort(); Handle(V3d_View) aView3d = aViewPort->getView(); - if ( !aView3d.IsNull() ) + if ( !aView3d.IsNull() ) { myAISContext->MoveTo(theEvent->x(), theEvent->y(), aView3d); + mouseMoved(theEvent->pos()); + } } /*! @@ -513,5 +519,5 @@ void XGUI_Viewer::onMouseReleased(XGUI_ViewWindow* theWindow, QMouseEvent* theEv { myAISContext->Select(); - emit selectionChanged(); + emit mouseReleased(theEvent->pos()); }