ModuleBase_OperationFeature* aFOperation = dynamic_cast<ModuleBase_OperationFeature*>
(myOperationMgr->currentOperation());
if (aFOperation) {
- anActiveFeature = aFOperation->feature();
+ anActiveFeature = aFOperation->feature();
QStringList aNested = allNestedCommands(aFOperation);
foreach(QString aAction, myActions.keys()) {
if (!aNested.contains(aAction))
setActionEnabled(aAction, false);
}
- } else
+ } else
setNestedCommandsEnabled(false);
updateByPlugins(anActiveFeature);
}
break;
case Preview: {
- aResult = ModuleBase_Tools::createAction(QIcon(), tr("See preview"),
+ aResult = ModuleBase_Tools::createAction(QIcon(), tr("See preview"),
aParent, 0, 0, "Compute preview");
aResult->setStatusTip(aResult->toolTip());
}
void XGUI_ActionsMgr::setNestedStackEnabled(ModuleBase_Operation* theOperation)
{
- ModuleBase_OperationFeature* anOperation =
+ ModuleBase_OperationFeature* anOperation =
dynamic_cast<ModuleBase_OperationFeature*>(theOperation);
if(!anOperation || !anOperation->feature())
return;
QStringList XGUI_ActionsMgr::allNestedCommands(ModuleBase_Operation* theOperation)
{
QStringList aFeatures;
- ModuleBase_OperationFeature* anOperation =
+ ModuleBase_OperationFeature* anOperation =
dynamic_cast<ModuleBase_OperationFeature*>(theOperation);
if(!anOperation || !anOperation->feature())
return aFeatures;