this, SLOT(onDeleteView(SUIT_ViewWindow*)));
connect(aMgr, SIGNAL(viewCreated(SUIT_ViewWindow*)),
this, SLOT(onViewCreated(SUIT_ViewWindow*)));
- connect(aMgr, SIGNAL(activated(SUIT_ViewWindow*)),
- this, SLOT(onActivated(SUIT_ViewWindow*)));
+ connect(aMgr, SIGNAL(activated(SUIT_ViewManager*)),
+ this, SLOT(onActivated(SUIT_ViewManager*)));
connect(aMgr, SIGNAL(mousePress(SUIT_ViewWindow*, QMouseEvent*)), this,
SLOT(onMousePress(SUIT_ViewWindow*, QMouseEvent*)));
}
//**********************************************
-void NewGeom_SalomeViewer::onActivated(SUIT_ViewWindow* theView)
+void NewGeom_SalomeViewer::onActivated(SUIT_ViewManager* theMgr)
{
- myView->setCurrentView(theView);
+ myView->setCurrentView(theMgr->getActiveView());
emit activated(myView);
}
void onTryCloseView(SUIT_ViewWindow*);
void onDeleteView(SUIT_ViewWindow*);
void onViewCreated(SUIT_ViewWindow*);
- void onActivated(SUIT_ViewWindow*);
+ void onActivated(SUIT_ViewManager*);
void onSelectionChanged();
void onViewTransformed(OCCViewer_ViewWindow::OperationType);