#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);
}
}
/*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
{
document()->finishOperation();
emit stopped();
-
+
afterCommitOperation();
return true;
}