Salome HOME
projects
/
modules
/
shaper.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Issue #6 Extended processing of nested actions.
[modules/shaper.git]
/
src
/
XGUI
/
XGUI_Viewer.cpp
diff --git
a/src/XGUI/XGUI_Viewer.cpp
b/src/XGUI/XGUI_Viewer.cpp
index 0d93d6cc04f8eeee6f995deb253278f79ac49eb9..23560ca86031d369571e2dcf5d864eb5a43d675e 100644
(file)
--- 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;
}
return aWnd;
}
+XGUI_ViewWindow* XGUI_Viewer::activeViewWindow() const
+{
+ return dynamic_cast<XGUI_ViewWindow*>(myActiveView->widget());
+}
void XGUI_Viewer::getSelectedObjects(AIS_ListOfInteractive& theList)
{
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();
XGUI_ViewPort* aViewPort = theWindow->viewPort();
Handle(V3d_View) aView3d = aViewPort->getView();
- if ( !aView3d.IsNull() )
+ if ( !aView3d.IsNull() )
{
myAISContext->MoveTo(theEvent->x(), theEvent->y(), aView3d);
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();
{
myAISContext->Select();
- emit
selectionChanged(
);
+ emit
mouseReleased(theEvent->pos()
);
}
}