: LightApp_Module( "NewGeom" ), mySelector(0)
{
myWorkshop = new XGUI_Workshop(this);
+ myProxyViewer = new NewGeom_SalomeViewer(this);
}
//******************************************************
foreach(SUIT_Selector* aSel, aList) {
aSel->setEnabled(aSel == aSelector);
}
+ myProxyViewer->setSelector(aSelector);
return aSelector;
}
return 0;
}
//******************************************************
-Handle(AIS_InteractiveContext) NewGeom_Module::AISContext() const
+void NewGeom_Module::setNestedActions(const QString& theId, const QStringList& theActions)
{
- Handle(AIS_InteractiveContext) aContext;
- OCCViewer_Viewer* aViewer = mySelector->viewer();
- if (aViewer) {
- aContext = aViewer->getAISContext();
- }
- return aContext;
+ myNestedActions[theId] = theActions;
+}
+
+//******************************************************
+QStringList NewGeom_Module::nestedActions(const QString& theId) const
+{
+ if (myNestedActions.contains(theId))
+ return myNestedActions[theId];
+ return QStringList();
}
//******************************************************