Salome HOME
Unpressing the button of the current action must behave like a validation if the...
[modules/shaper.git] / src / ModuleBase / ModuleBase_IWorkshop.h
index 45284de1bd2542f646356718eafa3272429e6448..c7ff4ceee902bdab60b9bebb48c8fd9e9edb0658 100644 (file)
@@ -13,6 +13,7 @@
 
 #include <ModelAPI_Object.h>
 #include <GeomAPI_AISObject.h>
+#include <Config_FeatureMessage.h>
 
 #include <QObject>
 
@@ -23,6 +24,7 @@ class ModuleBase_IPropertyPanel;
 class ModuleBase_Operation;
 class ModuleBase_FilterFactory;
 class ModuleBase_ViewerPrs;
+class QMainWindow;
 
 /**
  * \ingroup GUI
@@ -84,9 +86,9 @@ Q_OBJECT
   //! \return boolean result
   virtual bool canStopOperation(ModuleBase_Operation* theOperation) = 0;
 
-  //! Aborts the operation.
+  //! Commits if possible or aborts the given operation.
   //! \param theOperation an aborted operation
-  virtual void abortOperation(ModuleBase_Operation* theOperation) = 0;
+  virtual void stopOperation(ModuleBase_Operation* theOperation) = 0;
 
   //! Returns AIS object by data object
   //! \param theObject a data object
@@ -101,9 +103,21 @@ Q_OBJECT
   //! \param theValues a list of presentations
   virtual void setSelected(const QList<std::shared_ptr<ModuleBase_ViewerPrs>>& theValues) = 0;
 
+  //! Shows the message in the status bar
+  //! \param theMessage a message
+  virtual void setStatusBarMessage(const QString& theMessage) = 0;
+
    /// Update of commands status
   virtual void updateCommandStatus() = 0;
 
+  /// Returns feature info according to given feature ID
+  /// \param theId a feature Id
+  virtual std::shared_ptr<Config_FeatureMessage> featureInfo(const QString& theId) const = 0;
+
+  /// Returns main window of the application
+  virtual QMainWindow* desktop() const = 0;
+
+
 signals:
   /// Signal selection changed.
   void selectionChanged();