Salome HOME
[bos #35160][EDF](2023-T1) Keyboard shortcuts.
[modules/gui.git] / src / SUIT / SUIT_Application.cxx
index fef1771b3e5bbba0bd0e0f355282b86f8908a0d8..41bbef40e35b2e78f10104a452c618646fbccb7a 100644 (file)
@@ -189,7 +189,7 @@ SUIT_ResourceMgr* SUIT_Application::resourceMgr() const
 */
 SUIT_ShortcutMgr* SUIT_Application::shortcutMgr() const
 {
-  return SUIT_ShortcutMgr::getShortcutMgr();
+  return SUIT_ShortcutMgr::get();
 }
 
 #define DEFAULT_MESSAGE_DELAY 3000
@@ -639,13 +639,14 @@ QList<int> SUIT_Application::actionIds() const
   \param toggle - if it is \c true the action will be a toggle action, otherwise it will be a command action
   \param reciever - object that contains slot
   \param member - slot to be called when action is activated
+  \param actionID - application-unique action ID
 */
 QAction* SUIT_Application::createAction( const int id, const QString& text, const QIcon& icon,
                                          const QString& menu, const QString& tip, const int key,
-                                         QObject* parent, const bool toggle, QObject* reciever, 
-                                        const char* member, const QString& shortcutAction )
+                                         QObject* parent, const bool toggle, QObject* reciever,
+                                        const char* member, const QString& actionID )
 {
-  return createAction( id, text, icon, menu, tip, QKeySequence(key), parent, toggle, reciever, member, shortcutAction );
+  return createAction( id, text, icon, menu, tip, QKeySequence(key), parent, toggle, reciever, member, actionID );
 }
 
 /*!
@@ -661,13 +662,14 @@ QAction* SUIT_Application::createAction( const int id, const QString& text, cons
   \param toggle - if it is TRUE the action will be a toggle action, otherwise it will be a command action
   \param reciever - object that contains slot
   \param member - slot to be called when action is activated
+  \param actionID - application-unique action ID
 */
 QAction* SUIT_Application::createAction( const int id, const QString& text, const QIcon& icon,
                                          const QString& menu, const QString& tip, const QKeySequence& key,
-                                         QObject* parent, const bool toggle, QObject* reciever, 
-                                        const char* member, const QString& shortcutAction )
+                                         QObject* parent, const bool toggle, QObject* reciever,
+                                        const char* member, const QString& actionID )
 {
-  QtxAction* a = new QtxAction( text, icon, menu, key, parent, toggle, shortcutAction );
+  QtxAction* a = new QtxAction( text, icon, menu, key, parent, toggle, actionID );
   a->setStatusTip( tip );
 
   if ( reciever && member )