+ /// Returns the operation description
+ /// /returns the instance of the description class
+ ModuleBase_OperationDescription* getDescription() const { return myDescription; }
+
+ /// Returns list of granted operation indices
+ const QStringList& grantedOperationIds() const;
+
+ /// Sets list of operation indices, which can be started without the current operation stop
+ /// \param theList an ids
+ void setGrantedOperationIds(const QStringList& theList);
+
+ /// Must return true if this operation can be launched as nested for any current operation
+ /// and it is not necessary to check this operation on validity. By default
+ /// the operation is not granted.
+ /// The method has to be redefined for granted operations.
+ virtual bool isGranted(QString theId) const;
+
+ /// Returns True if data of its feature was modified during operation
+ virtual bool isModified() const;
+
+ /// Returns operations Id from it's description
+ QString id() const;
+
+ /// Must return True if the operation's feature is valid.
+ /// Since IOperation does not have any feature returns false.
+ virtual bool isValid() const;
+
+ /// \brief Set property pane to the operation
+ /// \param theProp a property panel instance
+ virtual void setPropertyPanel(ModuleBase_IPropertyPanel* theProp);
+
+ /// \return Currently installed property panel
+ ModuleBase_IPropertyPanel* propertyPanel() const { return myPropertyPanel; }
+
+ QString helpFileName() const { return myHelpFileName; }
+
+ void setHelpFileName(QString theName) {
+ myHelpFileName = theName;
+ }
+
+ void setHideFacesVisible(bool isVisible) { myHideFacesVisibilityState = isVisible; }
+
+ bool isHideFacesVisible() const { return myHideFacesVisibilityState; }
+
+signals:
+ /// The operation is started
+ void beforeStarted();
+ /// The operation is started
+ void started();
+
+ /// The operation is aborted
+ void beforeAborted();
+ /// The operation is aborted
+ void aborted();
+
+ /// The operation is committed
+ void beforeCommitted();
+ /// The operation is committed
+ void committed();
+
+ /// The operation is aborted or committed
+ void stopped();