2 * ModuleBase_PropPanelOperation.h
4 * Created on: Apr 2, 2014
8 #ifndef MODULEBASE_PROPPANELOPERATION_H
9 #define MODULEBASE_PROPPANELOPERATION_H
11 #include <ModuleBase.h>
12 #include <ModuleBase_Operation.h>
20 * \class ModuleBase_PropPanelOperation
23 class MODULEBASE_EXPORT ModuleBase_PropPanelOperation: public ModuleBase_Operation
29 ModuleBase_PropPanelOperation(const QString& theId = "", QObject* parent = 0);
30 virtual ~ModuleBase_PropPanelOperation();
33 * \brief Replied whether the operation should be commited after the start, or the operation itself
34 * do that. The default realization provides the check by the operation having the xml prepresentation
35 * @return the boolean value
37 virtual bool isPerformedImmediately() const
39 return xmlRepresentation().isEmpty();
42 * \brief Returns XML representation of the operation's widget.
45 * Returns XML representation of the operation's widget.
47 const QString& xmlRepresentation() const
53 * \brief Sets XML representation of the operation's widget.
54 * \param xmlRepr - XML QString
56 * Sets XML representation of the operation's widget.
58 void setXmlRepresentation(const QString& xmlRepr)
60 this->myXmlRepr = xmlRepr;
65 * Returns a short description of operation (will be
66 * inserted in title of property panel)
68 const QString& description() const
74 * Sets a short description of operation (will be
75 * inserted in title of property panel)
77 void setDescription(const QString& theDescription)
79 this->myDescription = theDescription;
83 //!< Next fields could be extracted into a subclass;
85 QString myDescription;
88 #endif //MODULEBASE_PROPPANELOPERATION_H