|
SHAPER
9.15.0
|
An implementation of SALOME connector class for implementation of XGUI functionality as a module of SALOME. More...

Public Slots | |
| virtual bool | activateModule (SUIT_Study *theStudy) |
| The method is redefined to connect to the study viewer before the data model is filled by opened file. More... | |
| virtual bool | deactivateModule (SUIT_Study *theStudy) |
| The method is called on the module activation. More... | |
Signals | |
| void | backupDone (QString aName, int aResult) |
Public Member Functions | |
| virtual void | initialize (CAM_Application *theApp) |
| Initializing of the module. More... | |
| virtual void | windows (QMap< int, int > &theWndMap) const |
| Definition of module standard windows. More... | |
| virtual void | viewManagers (QStringList &theList) const |
| Definition of module viewer. More... | |
| virtual void | selectionChanged () |
| The method is called on selection changed event. More... | |
| virtual QAction * | addFeature (const QString &theWorkBenchID, const QString &theWorkBenchName, const QString &theToolBarName, const QString &theActionIdLastToken, const QString &theActionTitle, const QString &theActionToolTip, const QString &theActionStatusTip, const QIcon &theActionIcon, const QKeySequence &theKS, const bool theIsCheckable, const bool theAddSeparator) |
| virtual QAction * | addFeature (const QString &theWBName, const QString &theTBName, const QString &theIdLastToken, const QString &theTitle, const QString &theTip, const QIcon &theIcon, const QKeySequence &theKeys, const bool theIsCheckable, const bool theAddSeparator, const QString &theStatusTip) |
| Creates a feature (command) in SALOME desktop. More... | |
| virtual QAction * | addFeature (const QString &theWBName, const ActionInfo &theInfo, const bool theAddSeparator) |
| Add feature (QAction) in the theWBName toolbar with given theInfo about action. More... | |
| virtual QAction * | addFeatureOfNested (const QString &theWBName, const ActionInfo &theInfo, const QList< QAction * > &theNestedActions) |
| Add a nested feature. More... | |
| virtual bool | isFeatureOfNested (const QAction *theAction) |
| Returns true if the feature action is a nested action, in other words, it is created by addNestedFeature(). More... | |
| virtual QAction * | addDesktopCommand (const QString &theId, const QString &theTitle, const QString &theTip, const QIcon &theIcon, const QKeySequence &theKeys, bool isCheckable, const char *theMenuSourceText, const QString &theSubMenu=QString(), const int theMenuPosition=10, const int theSuibMenuPosition=-1) Standard_OVERRIDE |
| Creates a command in Edit menu of SALOME desktop. More... | |
| virtual void | addDesktopMenuSeparator (const char *theMenuSourceText, const int theMenuPosition=10) |
| Insert separator into Edit menu of SALOME desktop. More... | |
| virtual bool | addActionInToolbar (QAction *theAction, const QString &theToolBarTitle) |
| Add an action to a tool bar. More... | |
| virtual void | createFeatureActions () |
| Creates menu/tool bar actions for loaded features stored in the menu manager. More... | |
| virtual QMainWindow * | desktop () const |
| Returns desktop window of SALOME. More... | |
| virtual void | setFeatureInfo (const QString &theFeatureId, const std::shared_ptr< Config_FeatureMessage > &theMessage) |
| Stores XML information for the feature kind. More... | |
| virtual std::shared_ptr< Config_FeatureMessage > | featureInfo (const QString &theFeatureId) |
| Returns XML information for the feature kind. More... | |
| virtual ModuleBase_IViewer * | viewer () const |
| Returns interface to Salome viewer. More... | |
| virtual QList< QAction * > | commandList () const |
| Returns list of defined actions (just by SHAPER module) More... | |
| virtual void | contextMenuPopup (const QString &theClient, QMenu *theMenu, QString &theTitle) |
| Redefinition of virtual function. More... | |
| virtual void | createPreferences () |
| Redefinition of virtual function for preferences creation. More... | |
| virtual void | preferencesChanged (const QString &theSection, const QString &theParam) |
| Redefinition of virtual function for preferences changed event. More... | |
| virtual void | putInfo (const QString &theInfo, const int theMSecs=0) |
| Shows the given text in status bar as a permanent text \theInfo a string value \theMsecs interval of msec milliseconds when the message will be hidden, if -1, it stays. More... | |
| XGUI_Workshop * | workshop () const |
| void | setIsOpened (bool theOpened) |
| Set flag about opened document state. More... | |
| virtual void | updateModuleVisibilityState () |
| QIntList | shaperActions () const |
| Returns list of the module commands. More... | |
| QMap< QString, QIntList > | shaperToolbars () const |
| Returns structure of tool bars. More... | |
| QIntList | getFreeCommands () const |
| Returns free commands which are not in toolbars in the module. More... | |
| QMap< QString, QIntList > | defaultToolbars () const |
| Returns structure of default tool bars. More... | |
| void | resetToolbars () |
| void | publishToStudy () |
| virtual void | updateInfoPanel () |
Protected Slots | |
| virtual void | onViewManagerAdded (SUIT_ViewManager *theMgr) |
| Redefinition of virtual function. More... | |
| virtual void | onViewManagerRemoved (SUIT_ViewManager *theMgr) |
| Redefinition of virtual function. More... | |
| void | onDefaultPreferences () |
| Set preferences to default. More... | |
| void | onScriptLoaded () |
| Hide object browser if it was created during loading script. More... | |
| void | onSaveDocByShaper () |
| Save application functionality with additional processing of aborting the current operation. More... | |
| void | onSaveAsDocByShaper () |
| Save application functionality with additional processing of aborting the current operation. More... | |
| void | onBackupDoc () |
| Backup document functionality with additional file validation. More... | |
| void | onBackupDone (QString aName, int aResult) |
| Document has been backed-up. More... | |
| void | onUpdateCommandStatus () |
| Obtains the current application and updates its actions. More... | |
| virtual void | logShaperGUIEvent () |
| The method is called on any GUI action. More... | |
Protected Member Functions | |
| CAM_DataModel * | createDataModel () |
| Create data model. More... | |
| virtual QtxPopupMgr * | popupMgr () |
| Create popup menu manager. More... | |
| virtual bool | abortAllOperations () |
| Abort all operations. More... | |
| int | backupDoc () |
| The automatic backup thread function. More... | |
An implementation of SALOME connector class for implementation of XGUI functionality as a module of SALOME.
|
virtual |
Initializing of the module.
| theApp | application instance |
|
virtual |
Definition of module standard windows.
|
virtual |
Definition of module viewer.
|
virtual |
The method is called on selection changed event.
|
virtual |
Creates a feature (command) in SALOME desktop.
| theWBName | - a workbench name |
| theTBName | - a toolbar name |
| theId | - an id of the feature |
| theTitle | - a menu item string |
| theTip | - a tooltip string (help) |
| theIcon | - icon |
| isCheckable | - is checkable or not |
| theKeys | - hot keys |
| isAddSeparator | boolean flag about adding separator after the action returns created action |
Implements XGUI_SalomeConnector.
|
virtual |
Add feature (QAction) in the theWBName toolbar with given theInfo about action.
Implements XGUI_SalomeConnector.
|
virtual |
Add a nested feature.
| theWBName | a workbench name |
| theInfo | the action parameters |
| theNestedActions | a list of nested actions |
nested action is always separated of others
nested action is always separated of others
Implements XGUI_SalomeConnector.
|
virtual |
Returns true if the feature action is a nested action, in other words, it is created by addNestedFeature().
| theAction | - an action of a feature returns boolean result |
Implements XGUI_SalomeConnector.
|
virtual |
Creates a command in Edit menu of SALOME desktop.
| theId | - an id of the feature |
| theTitle | - a menu item string |
| theTip | - a tooltip string (help) |
| theIcon | - icon |
| isCheckable | - is checkable or not |
| theKeys | - hot keys |
| theMenuSourceText | - a source text of the desktop menu |
| theSubMenu | - a sub-menu name |
| theMenuPosition | - a position of the command in the desktop menu |
| theSuibMenuPosition | - a position of the sub-menu in the desktop menu returns created action |
Implements XGUI_SalomeConnector.
|
virtual |
Insert separator into Edit menu of SALOME desktop.
Implements XGUI_SalomeConnector.
|
virtual |
Add an action to a tool bar.
| theAction | an ation to add |
| theToolBarTitle | a name of tool bar |
Implements XGUI_SalomeConnector.
|
virtual |
Creates menu/tool bar actions for loaded features stored in the menu manager.
Implements XGUI_SalomeConnector.
|
virtual |
Returns desktop window of SALOME.
Implements XGUI_SalomeConnector.
|
virtual |
Stores XML information for the feature kind.
| theFeatureId | a feature kind |
| theMessage | a container of the feature XML properties |
Implements XGUI_SalomeConnector.
|
virtual |
Returns XML information for the feature kind.
| theFeatureId | a feature kind |
Implements XGUI_SalomeConnector.
|
inlinevirtual |
Returns interface to Salome viewer.
Implements XGUI_SalomeConnector.
|
virtual |
Returns list of defined actions (just by SHAPER module)
Implements XGUI_SalomeConnector.
|
virtual |
Redefinition of virtual function.
| theClient | name of pop-up client |
| theMenu | popup menu instance |
| theTitle | menu title. |
|
virtual |
Redefinition of virtual function for preferences creation.
Implements XGUI_SalomeConnector.
|
virtual |
Redefinition of virtual function for preferences changed event.
|
virtual |
Shows the given text in status bar as a permanent text \theInfo a string value \theMsecs interval of msec milliseconds when the message will be hidden, if -1, it stays.
Implements XGUI_SalomeConnector.
|
inline |
|
inline |
Set flag about opened document state.
|
inline |
Returns list of the module commands.
|
inline |
Returns structure of tool bars.
| QIntList SHAPERGUI::getFreeCommands | ( | ) | const |
Returns free commands which are not in toolbars in the module.
|
inline |
Returns structure of default tool bars.
|
virtualslot |
The method is redefined to connect to the study viewer before the data model is filled by opened file.
This file open will flush redisplay signals for, objects which should be visualized
The method is called on the module activation
| theStudy | current study |
|
virtualslot |
The method is called on the module activation.
| theStudy | current study |
|
protectedvirtualslot |
Redefinition of virtual function.
| theMgr | view manager |
|
protectedvirtualslot |
Redefinition of virtual function.
| theMgr | view manager |
|
protectedslot |
Set preferences to default.
|
protectedslot |
Hide object browser if it was created during loading script.
|
protectedslot |
Save application functionality with additional processing of aborting the current operation.
|
protectedslot |
Save application functionality with additional processing of aborting the current operation.
|
protectedslot |
Backup document functionality with additional file validation.
|
protectedslot |
Document has been backed-up.
|
protectedslot |
Obtains the current application and updates its actions.
|
protectedvirtualslot |
The method is called on any GUI action.
|
protected |
Create data model.
|
protectedvirtual |
Create popup menu manager.
|
protectedvirtual |
Abort all operations.
|
protected |
The automatic backup thread function.