X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModuleBase%2FModuleBase_OperationDescription.h;h=fdcd0b3fb57c239d65348f7a54542408ac20452a;hb=853952fd4ddc93c0cd6a7122d37b618199864396;hp=aedb625b26f8b6d6a757800031e7ca3c71b341d1;hpb=ab453e930becb984af924565b2bf477628b91be0;p=modules%2Fshaper.git diff --git a/src/ModuleBase/ModuleBase_OperationDescription.h b/src/ModuleBase/ModuleBase_OperationDescription.h index aedb625b2..fdcd0b3fb 100644 --- a/src/ModuleBase/ModuleBase_OperationDescription.h +++ b/src/ModuleBase/ModuleBase_OperationDescription.h @@ -1,59 +1,80 @@ -/* - * ModuleBase_OperationDescription.h - * - * Created on: May 5, 2014 - * Author: nds - */ - -#ifndef MODULEBASE_OPERATIONDESCRIPTION_H -#define MODULEBASE_OPERATIONDESCRIPTION_H - -#include -#include - -#include -#include - -#include - -/*! - * \class ModuleBase_OperationDescription - * - */ -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 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; - - /// Sets a short description of operation (will be - /// inserted in title of property panel) - void setDescription(const QString& theDescription); - -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 -}; - -#endif //ModuleBase_OperationDescription_H +/* + * ModuleBase_OperationDescription.h + * + * Created on: Apr 2, 2014 + * Author: sbh + */ + +#ifndef MODULEBASE_OPERATIONDESCRIPTION_H +#define MODULEBASE_OPERATIONDESCRIPTION_H + +#include +#include + +#include +#include +#include + +#include + +//class ModuleBase_ModelWidget; + +/*! + * \class ModuleBase_OperationDescription + * + */ +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 XML representation of the operation's widget. + /// \return XML QString + //const QString& xmlRepresentation() 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); + + /// 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 myDescription; /// the short description of the opertaion + QString myXmlRepresentation; /// the xml definition + //QList myWidgets; /// the list of operation widgets +}; + +#endif //ModuleBase_OperationDescription_H \ No newline at end of file