Salome HOME
Translation of sketch operations
[modules/shaper.git] / src / ModuleBase / ModuleBase_IWorkshop.h
index 77f4cfe3f4da25b38949809c33747f643af71399..ec8d04906ea780fab13d6a487f92f3cff3784e9a 100644 (file)
 #include "ModuleBase.h"
 #include "ModuleBase_Definitions.h"
 #include <ModuleBase_FilterValidated.h>
-#include <ModuleBase_ViewerPrs.h>
 
 #include <ModelAPI_Object.h>
 #include <GeomAPI_AISObject.h>
+#include <Config_FeatureMessage.h>
 
 #include <QObject>
 
@@ -23,6 +23,8 @@ class ModuleBase_IViewer;
 class ModuleBase_IPropertyPanel;
 class ModuleBase_Operation;
 class ModuleBase_FilterFactory;
+class ModuleBase_ViewerPrs;
+class QMainWindow;
 
 /**
  * \ingroup GUI
@@ -99,7 +101,22 @@ Q_OBJECT
   //! Select features clearing previous selection. 
   //! If the list is empty then selection will be cleared
   //! \param theValues a list of presentations
-  virtual void setSelected(const QList<ModuleBase_ViewerPrs>& theValues) = 0;
+  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.