X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModuleBase%2FModuleBase_OperationDescription.h;h=79a7301109a410d96fe4b4833591e3091bcc0584;hb=d7e03da669a038a5a47ce8c8d878d8c81cf3faa5;hp=56b37c28eec66a01ceae2117a82bcc3e24a44f44;hpb=ef523c1c20fecaf086c9f9fe712750ae8e180ec0;p=modules%2Fshaper.git diff --git a/src/ModuleBase/ModuleBase_OperationDescription.h b/src/ModuleBase/ModuleBase_OperationDescription.h index 56b37c28e..79a730110 100644 --- a/src/ModuleBase/ModuleBase_OperationDescription.h +++ b/src/ModuleBase/ModuleBase_OperationDescription.h @@ -13,9 +13,12 @@ #include #include +#include #include +//class ModuleBase_ModelWidget; + /*! * \class ModuleBase_OperationDescription * @@ -35,11 +38,7 @@ public: /// 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); + //const QString& xmlRepresentation() const; /// Returns a short description of operation (will be /// inserted in title of property panel) @@ -49,11 +48,33 @@ public: /// inserted in title of property panel) void setDescription(const QString& theDescription); + /// Sets a list of model widgets, according to the operation feature xml definition + /// \param theWidgets a list of widgets + //void setModelWidgets(const std::string& theXmlRepresentation, + // const QList& theWidgets); + + /// Sets a list of model widgets, according to the operation feature xml definition + /// \param theWidgets a list of widgets + //const QList& modelWidgets() 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 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 + QString myXmlRepresentation; /// the xml definition + //QList myWidgets; /// the list of operation widgets }; #endif //ModuleBase_OperationDescription_H