-/*\r
- * ModuleBase_OperationDescription.h\r
- *\r
- * Created on: Apr 2, 2014\r
- * Author: sbh\r
- */\r
-\r
-#ifndef MODULEBASE_OPERATIONDESCRIPTION_H\r
-#define MODULEBASE_OPERATIONDESCRIPTION_H\r
-\r
-#include <ModuleBase.h>\r
-#include <ModuleBase_Operation.h>\r
-\r
-#include <QObject>\r
-#include <QString>\r
-#include <QList>\r
-\r
-#include <memory>\r
-\r
-//class ModuleBase_ModelWidget;\r
-\r
-/*!\r
- * \class ModuleBase_OperationDescription\r
- *\r
- */\r
-class MODULEBASE_EXPORT ModuleBase_OperationDescription\r
-{\r
- public:\r
- /// Constructor\r
- /// \param theId - the operation identifier\r
- ModuleBase_OperationDescription(const QString& theId = "");\r
- /// Destructor\r
- virtual ~ModuleBase_OperationDescription();\r
-\r
- /// Unique name of the operation\r
- /// \return string name of the operation.\r
- const QString& operationId() const;\r
-\r
- /// Returns XML representation of the operation's widget.\r
- /// \return XML QString\r
- //const QString& xmlRepresentation() const;\r
-\r
- /// Returns a short description of operation (will be\r
- /// inserted in title of property panel)\r
- const QString& description() const;\r
-\r
- /// Sets a short description of operation (will be\r
- /// inserted in title of property panel)\r
- void setDescription(const QString& theDescription);\r
-\r
- /// Sets a list of model widgets, according to the operation feature xml definition\r
- /// \param theWidgets a list of widgets\r
- //void setModelWidgets(const std::string& theXmlRepresentation,\r
- // const QList<ModuleBase_ModelWidget*>& theWidgets);\r
-\r
- /// Sets a list of model widgets, according to the operation feature xml definition\r
- /// \param theWidgets a list of widgets\r
- //const QList<ModuleBase_ModelWidget*>& modelWidgets() const;\r
-\r
- /// Returns XML representation of the operation's widget.\r
- /// \return XML QString\r
- const QString& xmlRepresentation() const;\r
-\r
- /// Sets XML representation of the operation's widget.\r
- /// \param theXMLRepresentation - XML QString\r
- void setXmlRepresentation(const QString& theXMLRepresentation);\r
-\r
- /// Returns true if there are no model widgets\r
- /// \return the boolean value\r
- bool hasXmlRepresentation() const;\r
-\r
- private:\r
- //!< Next fields could be extracted into a subclass;\r
- QString myOperationId; /// the operation identifier\r
- QString myDescription; /// the short description of the opertaion\r
- QString myXmlRepresentation; /// the xml definition\r
- //QList<ModuleBase_ModelWidget*> myWidgets; /// the list of operation widgets\r
-};\r
-\r
-#endif //ModuleBase_OperationDescription_H\r
\ No newline at end of file
+// Copyright (C) 2014-2024 CEA, EDF
+//
+// 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
+//
+
+#ifndef MODULEBASE_OPERATIONDESCRIPTION_H
+#define MODULEBASE_OPERATIONDESCRIPTION_H
+
+#include <ModuleBase.h>
+#include <ModuleBase_Operation.h>
+
+#include <QObject>
+#include <QString>
+#include <QList>
+
+#include <memory>
+
+//class ModuleBase_ModelWidget;
+
+/*!
+ * \class ModuleBase_OperationDescription
+ * \ingroup GUI
+ * Description of operation from XML
+ */
+class MODULEBASE_EXPORT ModuleBase_OperationDescription
+{
+ public:
+ /// Constructor
+ /// \param theId - the operation identifier
+ ModuleBase_OperationDescription(const QString& theId = "");
+ /// Destructor
+ virtual ~ModuleBase_OperationDescription();
+
+ /// Unique name of the operation
+ /// \return string name of the operation.
+ const QString& operationId() const;
+
+ /// Returns a short description of operation (will be
+ /// inserted in title of property panel)
+ const QString& description() const;
+
+ /// Sets a short description of operation (will be
+ /// inserted in title of property panel)
+ void setDescription(const QString& theDescription);
+
+ /// Returns XML representation of the operation's widget.
+ /// \return XML QString
+ const QString& xmlRepresentation() const;
+
+ /// Sets XML representation of the operation's widget.
+ /// \param theXMLRepresentation - XML QString
+ void setXmlRepresentation(const QString& theXMLRepresentation);
+
+ /// Returns true if there are no model widgets
+ /// \return the boolean value
+ bool hasXmlRepresentation() const;
+
+ private:
+ //!< Next fields could be extracted into a subclass;
+ /// the operation identifier
+ QString myOperationId;
+
+ /// the short description of the opertaion
+ QString myDescription;
+
+ /// the xml definition
+ QString myXmlRepresentation;
+};
+
+#endif //ModuleBase_OperationDescription_H