{
return myActionsMgr;
}
- ;
//! Returns property panel widget
XGUI_PropertyPanel* propertyPanel() const
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();
void validateOperation(const QString& theOperationId);
- QList<QAction*> getModuleCommands() const;
-
void displayAllResults();
void displayDocumentResults(DocumentPtr theDoc);
void displayGroupResults(DocumentPtr theDoc, std::string theGroup);
/// 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);
// 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;