X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModuleBase%2FModuleBase_OperationDescription.cpp;h=04d5cc4a01f0371787b3c14da7cff60f06d1a2f5;hb=9aeb69897970e21212d6f8926ec33d2eb696f18d;hp=a9bd201ac456ab19094095dd9dd31292f99c18e6;hpb=6df60c642d0427e2cb42bd29e2c64d4e5dbdaee4;p=modules%2Fshaper.git diff --git a/src/ModuleBase/ModuleBase_OperationDescription.cpp b/src/ModuleBase/ModuleBase_OperationDescription.cpp index a9bd201ac..04d5cc4a0 100644 --- a/src/ModuleBase/ModuleBase_OperationDescription.cpp +++ b/src/ModuleBase/ModuleBase_OperationDescription.cpp @@ -1,15 +1,17 @@ +// Copyright (C) 2014-20xx CEA/DEN, EDF R&D + /* * ModuleBase_OperationDescription.cpp * - * Created on: May 5, 2014 - * Author: nds + * Created on: Apr 2, 2014 + * Author: sbh */ #include #include ModuleBase_OperationDescription::ModuleBase_OperationDescription(const QString& theId) -: myOperationId(theId) + : myOperationId(theId) { } @@ -22,23 +24,42 @@ const QString& ModuleBase_OperationDescription::operationId() const return myOperationId; } -const QString& ModuleBase_OperationDescription::xmlRepresentation() const +const QString& ModuleBase_OperationDescription::description() const { - return myXmlRepr; + return myDescription; } -void ModuleBase_OperationDescription::setXmlRepresentation(const QString& xmlRepr) +void ModuleBase_OperationDescription::setDescription(const QString& theDescription) { - myXmlRepr = xmlRepr; + myDescription = theDescription; } -const QString& ModuleBase_OperationDescription::description() const +/*void ModuleBase_OperationDescription::setModelWidgets(const std::string& theXmlRepresentation, + const QList& theWidgets) + { + myWidgets.clear(); + QList::const_iterator anIt = theWidgets.begin(), aLast = theWidgets.end(); + for (; anIt != aLast; anIt++) + myWidgets.push_back(*anIt); + myXmlRepresentation = theXmlRepresentation; + }*/ + +/*const QList& ModuleBase_OperationDescription::modelWidgets() const + { + return myWidgets; + }*/ + +const QString& ModuleBase_OperationDescription::xmlRepresentation() const { - return myDescription; + return myXmlRepresentation; } -void ModuleBase_OperationDescription::setDescription(const QString& theDescription) +void ModuleBase_OperationDescription::setXmlRepresentation(const QString& theXMLRepresentation) { - myDescription = theDescription; + myXmlRepresentation = theXMLRepresentation; } +bool ModuleBase_OperationDescription::hasXmlRepresentation() const +{ + return /*!myWidgets.empty() || */!myXmlRepresentation.isEmpty(); +}