]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/ModuleBase/ModuleBase_IOperation.cpp
Salome HOME
Sources formated according to the codeing standards
[modules/shaper.git] / src / ModuleBase / ModuleBase_IOperation.cpp
index cee8fbc2b1d531cc41fa5c3bab5d656d7f1481d2..f8aacb9c18e37adf10b8aef650a1741f13b4eca7 100644 (file)
@@ -17,7 +17,9 @@
 #endif
 
 ModuleBase_IOperation::ModuleBase_IOperation(const QString& theId, QObject* theParent)
- : QObject(theParent), myIsEditing(false), myIsModified(false)
+    : QObject(theParent),
+      myIsEditing(false),
+      myIsModified(false)
 {
   myDescription = new ModuleBase_OperationDescription(theId);
 }
@@ -43,14 +45,14 @@ bool ModuleBase_IOperation::isGranted(ModuleBase_IOperation* /*theOperation*/) c
 }
 
 /*void ModuleBase_IOperation::setModelWidgets(const std::string& theXmlRepresentation,
                                           QList<ModuleBase_ModelWidget*> theWidgets)
-{
 QList<ModuleBase_ModelWidget*>::const_iterator anIt = theWidgets.begin(), aLast = theWidgets.end();
 for (; anIt != aLast; anIt++) {
   QObject::connect(*anIt, SIGNAL(valuesChanged()),  this, SLOT(storeCustomValue()));
 }
 getDescription()->setModelWidgets(theXmlRepresentation, theWidgets);
-}*/
+ QList<ModuleBase_ModelWidget*> theWidgets)
+ {
+ QList<ModuleBase_ModelWidget*>::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<ModelAPI_Document> ModuleBase_IOperation::document() const
 {
@@ -91,7 +93,7 @@ bool ModuleBase_IOperation::commit()
 
     document()->finishOperation();
     emit stopped();
-  
+
     afterCommitOperation();
     return true;
   }