X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModuleBase%2FModuleBase_OperationDescription.cpp;h=565223e7f0b8663fdf45bf8f9a186151a1daa760;hb=c155919c16327dae7e09cd1e6a5b6d166e844767;hp=a9bd201ac456ab19094095dd9dd31292f99c18e6;hpb=ab453e930becb984af924565b2bf477628b91be0;p=modules%2Fshaper.git diff --git a/src/ModuleBase/ModuleBase_OperationDescription.cpp b/src/ModuleBase/ModuleBase_OperationDescription.cpp index a9bd201ac..565223e7f 100644 --- a/src/ModuleBase/ModuleBase_OperationDescription.cpp +++ b/src/ModuleBase/ModuleBase_OperationDescription.cpp @@ -1,15 +1,27 @@ -/* - * ModuleBase_OperationDescription.cpp - * - * Created on: May 5, 2014 - * Author: nds - */ +// Copyright (C) 2014-2019 CEA/DEN, EDF R&D +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +// +// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com +// #include #include ModuleBase_OperationDescription::ModuleBase_OperationDescription(const QString& theId) -: myOperationId(theId) + : myOperationId(theId) { } @@ -22,23 +34,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(); +}