X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FXGUI%2FXGUI_Workshop.h;h=d2423262c0d08803c5a1fe2d56e54363706bffda;hb=5e6c61f177b2d7f07fcf94abaf96de4f8366f27b;hp=97dc5d64cb43e91c2f020c0b0aba6fc6bc3bce2e;hpb=3874b57fe5aba25ff5aee2a07654fc23c1ee8eb0;p=modules%2Fshaper.git diff --git a/src/XGUI/XGUI_Workshop.h b/src/XGUI/XGUI_Workshop.h index 97dc5d64c..d2423262c 100644 --- a/src/XGUI/XGUI_Workshop.h +++ b/src/XGUI/XGUI_Workshop.h @@ -91,7 +91,6 @@ Q_OBJECT { return myActionsMgr; } - ; //! Returns property panel widget XGUI_PropertyPanel* propertyPanel() const @@ -193,10 +192,11 @@ Q_OBJECT signals: void salomeViewerSelection(); void errorOccurred(const QString&); + //! the signal about the workshop actions states are updated. + void commandStatusUpdated(); public slots: void updateCommandStatus(); - void updateCommandsOnViewSelection(); void onNew(); void onOpen(); @@ -241,8 +241,6 @@ signals: void validateOperation(const QString& theOperationId); - QList getModuleCommands() const; - void displayAllResults(); void displayDocumentResults(DocumentPtr theDoc); void displayGroupResults(DocumentPtr theDoc, std::string theGroup); @@ -261,7 +259,15 @@ signals: /// SLOT, that is called after the operation is stopped. Update workshop state, e.g. /// hides the property panel and udpate the command status. /// \param theOpertion a stopped operation - void onOperationStopped(ModuleBase_Operation* theOperation); + virtual void onOperationStopped(ModuleBase_Operation* theOperation); + + /// SLOT, that is called after the operation is committed. + /// \param theOpertion a commmitted operation + virtual void onOperationCommitted(ModuleBase_Operation* theOperation); + + /// SLOT, that is called after the operation is aborted. + /// \param theOpertion an aborted operation + void onOperationAborted(ModuleBase_Operation* theOperation); void onContextMenuCommand(const QString& theId, bool isChecked); @@ -283,6 +289,10 @@ signals: // Creates Dock widgets: Object browser and Property panel void createDockWidgets(); + /// Displaus object and fit all viewer if the object is first (update viewer will not be called) + void displayObject(ObjectPtr theObj); + +private: AppElements_MainWindow* myMainWindow; ModuleBase_IModule* myModule; XGUI_ObjectsBrowser* myObjectBrowser;