X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModuleBase%2FModuleBase_IWorkshop.h;h=c7ff4ceee902bdab60b9bebb48c8fd9e9edb0658;hb=c8ab29e531ee03054976a7606076f2c4ee1d9f6b;hp=45284de1bd2542f646356718eafa3272429e6448;hpb=9ddad7aadf48e6754d8ddeea4eaf0c37c66a9b8f;p=modules%2Fshaper.git diff --git a/src/ModuleBase/ModuleBase_IWorkshop.h b/src/ModuleBase/ModuleBase_IWorkshop.h index 45284de1b..c7ff4ceee 100644 --- a/src/ModuleBase/ModuleBase_IWorkshop.h +++ b/src/ModuleBase/ModuleBase_IWorkshop.h @@ -13,6 +13,7 @@ #include #include +#include #include @@ -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>& 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 featureInfo(const QString& theId) const = 0; + + /// Returns main window of the application + virtual QMainWindow* desktop() const = 0; + + signals: /// Signal selection changed. void selectionChanged();