-
-/*const char* toString(ModelAPI_ExecState theExecState)
-{
-#define TO_STRING(__NAME__) case __NAME__: return #__NAME__;
- switch (theExecState) {
- TO_STRING(ModelAPI_StateDone)
- TO_STRING(ModelAPI_StateMustBeUpdated)
- TO_STRING(ModelAPI_StateExecFailed)
- TO_STRING(ModelAPI_StateInvalidArgument)
- TO_STRING(ModelAPI_StateNothing)
- default: return "Unknown ExecState.";
- }
-#undef TO_STRING
-}*/
-
-/*void XGUI_ErrorMgr::onValidationStateChanged()
-{
- XGUI_OperationMgr* anOperationMgr = dynamic_cast<XGUI_OperationMgr*>(sender());
- if (!anOperationMgr)
- return;
- ModuleBase_OperationFeature* aFOperation = dynamic_cast<ModuleBase_OperationFeature*>
- (anOperationMgr->currentOperation());
- if (!myPropertyPanel || !aFOperation)
- return;
-
- FeaturePtr aFeature = aFOperation->feature();
- QString anError = getFeatureError(aFeature);
-
- QWidget* aWidget = myPropertyPanel->headerWidget();
- if (aWidget) {
- aWidget->setToolTip(anError);
- aWidget->setStyleSheet(anError.isEmpty() ? "" : "background-color:pink;");
- }
-}*/
-
-/*QString XGUI_ErrorMgr::getFeatureError(const FeaturePtr& theFeature) const
-{
- QString anError;
- // get feature
- if (!theFeature.get() || !theFeature->data()->isValid())
- return anError;
-
- // set error indication
- anError = QString::fromStdString(theFeature->error());
- if (anError.isEmpty()) {
- bool isDone = ( theFeature->data()->execState() == ModelAPI_StateDone
- || theFeature->data()->execState() == ModelAPI_StateMustBeUpdated );
- if (!isDone)
- anError = toString(theFeature->data()->execState());
- }
-
- return anError;
-}*/
-