-// Copyright (C) 2014-2019 CEA/DEN, EDF R&D
+// Copyright (C) 2014-2020 CEA/DEN, EDF R&D
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
hasCompositeOwner |= (ModelAPI_Tools::bodyOwner(aResult) != NULL);
if (!hasResultInHistory && aResult.get()) {
- FeaturePtr aFeature = ModelAPI_Feature::feature(aResult);
+ aFeature = ModelAPI_Feature::feature(aResult);
hasResultInHistory = aFeature.get() && aFeature->isInHistory();
}
aPartFeatureNames.sort();
anOtherFeatureNames.sort();
- bool aCanReplaceParameters = !aFeaturesRefsToParameterOnly.empty();
-
QMessageBox aMessageBox(theParent);
aMessageBox.setWindowTitle(QObject::tr("Delete features"));
aMessageBox.setIcon(QMessageBox::Warning);
"be deleted.\nOr parameters could be replaced by their values.\n";
aText += QString(QObject::tr(aMsg))
.arg(aParamFeatureNames.join(aSep));
+#ifdef _DEBUG
QPushButton *aReplaceButton =
+#endif
aMessageBox.addButton(QObject::tr("Replace"), QMessageBox::ActionRole);
}
return aMessage;
}
-void setPointBallHighlighting(AIS_Shape* theAIS)
+void setPointBallHighlighting(AIS_InteractiveObject* theAIS)
{
static Handle(Image_AlienPixMap) aPixMap;
if(aPixMap.IsNull()) {
SessionPtr aMgr = ModelAPI_Session::get();
std::shared_ptr<ModelAPI_Document> aDoc = aMgr->activeDocument();
- aParameter = aDoc->addFeature("Parameter");
+ aParameter = aDoc->addFeature("Parameter", false);
if (aParameter.get()) {
AttributeStringPtr aNameAttr = aParameter->string("variable");
aNameAttr->setValue(aParamName.toStdString());
{
std::wstring aName;
if (theAttribute.get() != NULL) {
- ModuleBase_Operation* anOperation = theWorkshop->currentOperation();
-
FeaturePtr aFeature = ModelAPI_Feature::feature(theAttribute->owner());
if (aFeature.get()) {
std::string aXmlCfg, aDescription;