}
}
+void XGUI_ViewerProxy::fitAll()
+{
+ if (myWorkshop->isSalomeMode()) {
+ myWorkshop->salomeConnector()->viewer()->fitAll();
+ }
+ else {
+ XGUI_Viewer* aViewer = myWorkshop->mainWindow()->viewer();
+ aViewer->activeViewWindow()->viewPort()->fitAll();
+ }
+}
void XGUI_ViewerProxy::connectToViewer()
{
connect(aViewer, SIGNAL(keyRelease(QKeyEvent*)),
this, SIGNAL(keyRelease(QKeyEvent*)));
+
+ connect(aViewer, SIGNAL(selectionChanged()), this, SIGNAL(selectionChanged()));
+ connect(aViewer, SIGNAL(contextMenuRequested(QContextMenuEvent*)),
+ this, SIGNAL(contextMenuRequested(QContextMenuEvent*)));
+
} else {
XGUI_Viewer* aViewer = myWorkshop->mainWindow()->viewer();
this, SLOT(onKeyPress(XGUI_ViewWindow*, QKeyEvent*)));
connect(aViewer, SIGNAL(keyRelease(XGUI_ViewWindow*, QKeyEvent*)),
this, SLOT(onKeyRelease(XGUI_ViewWindow*, QKeyEvent*)));
+
+ connect(aViewer, SIGNAL(selectionChanged()), this, SIGNAL(selectionChanged()));
+ connect(aViewer, SIGNAL(contextMenuRequested(QContextMenuEvent*)),
+ this, SIGNAL(contextMenuRequested(QContextMenuEvent*)));
}
}