aAction = ModuleBase_Tools::createAction(QIcon(":pictures/color.png"), tr("Color..."), aDesktop);
addAction("COLOR_CMD", aAction);
+ aAction = ModuleBase_Tools::createAction(QIcon(""), tr("Deflection..."), aDesktop);
+ addAction("DEFLECTION_CMD", aAction);
+
aAction = ModuleBase_Tools::createAction(QIcon(":pictures/eye_pencil.png"), tr("Show"), aDesktop);
addAction("SHOW_CMD", aAction);
if (myWorkshop->canChangeColor())
action("COLOR_CMD")->setEnabled(true);
+ if (myWorkshop->canChangeDeflection())
+ action("DEFLECTION_CMD")->setEnabled(true);
+
ModuleBase_IModule* aModule = myWorkshop->module();
if (aModule)
aModule->updateObjectBrowserMenu(myActions);
if (myWorkshop->canChangeColor())
action("COLOR_CMD")->setEnabled(true);
+ if (myWorkshop->canChangeDeflection())
+ action("DEFLECTION_CMD")->setEnabled(true);
+
action("DELETE_CMD")->setEnabled(true);
}
aList.append(mySeparator);
aList.append(action("RENAME_CMD"));
aList.append(action("COLOR_CMD"));
+ aList.append(action("DEFLECTION_CMD"));
aList.append(action("SHOW_FEATURE_CMD"));
myObjBrowserMenus[ModelAPI_ResultConstruction::group()] = aList;
aList.append(mySeparator);
aList.append(action("RENAME_CMD"));
aList.append(action("COLOR_CMD"));
+ aList.append(action("DEFLECTION_CMD"));
aList.append(action("SHOW_FEATURE_CMD"));
myObjBrowserMenus[ModelAPI_ResultBody::group()] = aList;
// Group menu
aList.append(action("SHOW_ONLY_CMD"));
aList.append(mySeparator);
aList.append(action("COLOR_CMD"));
+ aList.append(action("DEFLECTION_CMD"));
myViewerMenu[ModelAPI_ResultConstruction::group()] = aList;
// Result part menu
myViewerMenu[ModelAPI_ResultPart::group()] = aList;
aList.append(action("SHOW_ONLY_CMD"));
aList.append(mySeparator);
aList.append(action("COLOR_CMD"));
+ aList.append(action("DEFLECTION_CMD"));
myViewerMenu[ModelAPI_ResultBody::group()] = aList;
// Group menu
myViewerMenu[ModelAPI_ResultGroup::group()] = aList;
aActions.append(mySeparator);
//aActions.append(action("MOVE_CMD"));
aActions.append(action("COLOR_CMD"));
+ aActions.append(action("DEFLECTION_CMD"));
+
aActions.append(action("CLEAN_HISTORY_CMD"));
aActions.append(action("DELETE_CMD"));
}
// hide all is shown always even if selection in the viewer is empty
aActions.append(action("HIDEALL_CMD"));
aActions.append(action("COLOR_CMD"));
+ aActions.append(action("DEFLECTION_CMD"));
theMenu->addActions(aActions);