#include <GeomAPI_Face.h>
+#include <Events_InfoMessage.h>
+
#include <ModelAPI_Session.h>
#include <ModelAPI_ResultBody.h>
#include <ModelAPI_AttributeSelection.h>
aValues.push_back(aValue);
aFOperation->setPreselection(aValues);
- myModule->sendOperation(aFOperation);
+ myWorkshop->processLaunchOperation(aFOperation);
return aSketchStarted;
}
SessionPtr aMgr = ModelAPI_Session::get();
ModelAPI_ValidatorsFactory* aFactory = aMgr->validators();
AttributePtr anAttribute = myFeature->attribute(anObjectsAttribute);
- std::string aValidatorID, anError;
+ std::string aValidatorID;
+ Events_InfoMessage anError;
aSelList->append(aRes, GeomShapePtr());
if (aFactory->validate(anAttribute, aValidatorID, anError))
updateObject(aCompFeature);
SessionPtr aMgr = ModelAPI_Session::get();
ModelAPI_ValidatorsFactory* aFactory = aMgr->validators();
- std::string aValidatorID, anError;
+ std::string aValidatorID;
+ Events_InfoMessage anError;
bool isValidPComposite = aFactory->validate(anAttrList, aValidatorID, anError);
if (!isValidPComposite) {
XGUI_Workshop* aWorkshop = XGUI_Tools::workshop(myModule->workshop());
+ // TODO(spo): translate
QMessageBox::question(aWorkshop->desktop(), tr("Apply current feature"),
- tr("Sketch is invalid and will be deleted.\nError: %1").arg(anError.c_str()),
+ tr("Sketch is invalid and will be deleted.\nError: %1").arg(anError.messageString().c_str()),
QMessageBox::Ok);
}
return isValidPComposite;