+/*void XGUI_WorkshopListener::onNestedStateChanged(const std::string& theFeatureId, const bool theState)
+{
+ XGUI_Workshop* aWorkshop = workshop();
+
+ //one button is used for all features, which can have nested actions, so it is obtained from
+ // the action manager
+ //bool aActionToBeUpdated = aWorkshop->isFeatureOfNested(theFeatureId);
+ if (aWorkshop->isSalomeMode()) {
+ XGUI_SalomeConnector* aSalomeConnector = aWorkshop->salomeConnector();
+ XGUI_ActionsMgr* anActionsMgr = aWorkshop->actionsMgr();
+ if (aSalomeConnector->isFeatureOfNested(anActionsMgr->action(theFeatureId.c_str())))
+ aActionToBeUpdated = true;
+ } else {
+ AppElements_MainMenu* aMenuBar = aWorkshop->mainWindow()->menuObject();
+ AppElements_Command* aCommand = aMenuBar->feature(theFeatureId.c_str());
+ if (aCommand && aCommand->button()->additionalButtonWidget())
+ aActionToBeUpdated = true;
+ }
+ if (aActionToBeUpdated) {
+ QAction* anAcceptAllAction = aWorkshop->actionsMgr()->operationStateAction(XGUI_ActionsMgr::AcceptAll, NULL);
+ anAcceptAllAction->setEnabled(theState);
+ }
+}*/
+