X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModuleBase%2FModuleBase_IOperation.cpp;h=cc398e5b03df0b227fb47b3b153740eb501fe097;hb=11496be069750941ff9cbcef21088a56bfd32cdf;hp=378af8663e35751e213566728e7ea3bfc3e41849;hpb=fb6327a29cb44836388e29ef7d06137fad863a49;p=modules%2Fshaper.git diff --git a/src/ModuleBase/ModuleBase_IOperation.cpp b/src/ModuleBase/ModuleBase_IOperation.cpp index 378af8663..cc398e5b0 100644 --- a/src/ModuleBase/ModuleBase_IOperation.cpp +++ b/src/ModuleBase/ModuleBase_IOperation.cpp @@ -7,6 +7,7 @@ #include "ModuleBase_IOperation.h" #include "ModuleBase_OperationDescription.h" +#include "ModuleBase_ModelWidget.h" #include #include @@ -16,7 +17,7 @@ #endif ModuleBase_IOperation::ModuleBase_IOperation(const QString& theId, QObject* theParent) - : QObject(theParent) + : QObject(theParent), myIsEditing(false), myIsModified(false) { myDescription = new ModuleBase_OperationDescription(theId); } @@ -41,6 +42,16 @@ bool ModuleBase_IOperation::isGranted(ModuleBase_IOperation* /*theOperation*/) c return false; } +/*void ModuleBase_IOperation::setModelWidgets(const std::string& theXmlRepresentation, + QList theWidgets) +{ + QList::const_iterator anIt = theWidgets.begin(), aLast = theWidgets.end(); + for (; anIt != aLast; anIt++) { + QObject::connect(*anIt, SIGNAL(valuesChanged()), this, SLOT(storeCustomValue())); + } + getDescription()->setModelWidgets(theXmlRepresentation, theWidgets); +}*/ + boost::shared_ptr ModuleBase_IOperation::document() const { return ModelAPI_PluginManager::get()->rootDocument();