+// Copyright (C) 2014-20xx CEA/DEN, EDF R&D
+
/*
* ModuleBase_OperationDescription.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:
+ public:
/// Constructor
/// \param theId - the operation identifier
ModuleBase_OperationDescription(const QString& theId = "");
/// \return string name of the operation.
const QString& operationId() const;
- /// Returns XML representation of the operation's widget.
- /// \return XML QString
- const QString& xmlRepresentation() const;
-
- /// Sets XML representation of the operation's widget.
- /// \param xmlRepr - XML QString
- void setXmlRepresentation(const QString& xmlRepr);
-
/// Returns a short description of operation (will be
/// inserted in title of property panel)
const QString& description() const;
/// inserted in title of property panel)
void setDescription(const QString& theDescription);
-private:
+ /// 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;
- QString myOperationId; /// the operation identifier
- QString myXmlRepr; /// the XML representation of the operation's widget
- QString myDescription; /// the short description of the opertaion
+ /// the operation identifier
+ QString myOperationId;
+
+ /// the short description of the opertaion
+ QString myDescription;
+
+ /// the xml definition
+ QString myXmlRepresentation;
};
#endif //ModuleBase_OperationDescription_H