|
SHAPER
9.15.0
|
class XGUI_ActionsMgrA class for management of actions (features) activation/deactivation More...

Public Types | |
| enum | OperationStateActionId { Abort = 0 , Accept = 1 , AcceptPlus = 2 , Help = 3 , AbortAll = 4 , AcceptAll = 5 , Preview = 6 } |
| Actions on operations. More... | |
Public Member Functions | |
| XGUI_ActionsMgr (XGUI_Workshop *theWorkshop) | |
| Constructor. More... | |
| void | addCommand (QAction *theCmd) |
| Add a command in the manager. More... | |
| void | addNestedCommands (const QString &theId, const QStringList &theCommands) |
| Sets relation between the command (with given Id) and it's nested actions. More... | |
| QStringList | nestedCommands (const QString &theId) const |
| Returns list of nested commands by parent command Id. More... | |
| bool | isNested (const QString &theId) const |
| Returns True if the given Id is an Id of nested command. More... | |
| QKeySequence | registerShortcut (const QKeySequence &theKeySequence) |
| Registers shortcut (key sequence) for the command triggering. More... | |
| QKeySequence | registerShortcut (const QString &theKeySequence) |
| This is an overloaded function. More... | |
| virtual void | processEvent (const std::shared_ptr< Events_Message > &theMessage) |
| Redefinition of Events_Listener method. More... | |
| QAction * | operationStateAction (OperationStateActionId theId) |
| Return property panel's action like ok, cancel, help. More... | |
| QAction * | action (const QString &theId) |
| Return an action by the given id, if it was registered in the manager. More... | |
| ActionInfo | actionInfoById (const QString &theId) |
| Return info (icon, text, etc) about the action by the given id, if it was registered in the manager. More... | |
| virtual EVENTS_EXPORT bool | groupMessages () |
| Listener that needs mostly grouped messages received returns true in this method. More... | |
Protected Member Functions | |
| void | groupWhileFlush (const std::shared_ptr< Events_Message > &theMessage) |
| Allows to group messages while they are flushed (for flush for groupMessages=true listeners) More... | |
| EVENTS_EXPORT void | flushGrouped (const Events_ID &theID) |
| Sends myGroups on flush finish. More... | |
Friends | |
| class | XGUI_Workshop |
class XGUI_ActionsMgr
A class for management of actions (features) activation/deactivation
Actions on operations.
| XGUI_ActionsMgr::XGUI_ActionsMgr | ( | XGUI_Workshop * | theWorkshop | ) |
Constructor.
| theWorkshop | an instance of workshop |
| void XGUI_ActionsMgr::addCommand | ( | QAction * | theCmd | ) |
Add a command in the manager.
Please note that nested commands in the Salome mode (No AppElements_Command, pure QActions) won't be extracted and should be added manually using the addNestedCommands method.
| void XGUI_ActionsMgr::addNestedCommands | ( | const QString & | theId, |
| const QStringList & | theCommands | ||
| ) |
Sets relation between the command (with given Id) and it's nested actions.
| QStringList XGUI_ActionsMgr::nestedCommands | ( | const QString & | theId | ) | const |
Returns list of nested commands by parent command Id.
| theId | a parent command Id |
| bool XGUI_ActionsMgr::isNested | ( | const QString & | theId | ) | const |
Returns True if the given Id is an Id of nested command.
| theId | an Id to check |
| QKeySequence XGUI_ActionsMgr::registerShortcut | ( | const QKeySequence & | theKeySequence | ) |
Registers shortcut (key sequence) for the command triggering.
| theKeySequence | a key sequence to register |
| QKeySequence XGUI_ActionsMgr::registerShortcut | ( | const QString & | theKeySequence | ) |
This is an overloaded function.
Registers shortcut (key sequence) for the command triggering
| theKeySequence | - string that contain a key sequence to register |
|
virtual |
Redefinition of Events_Listener method.
Implements Events_Listener.
| QAction * XGUI_ActionsMgr::operationStateAction | ( | OperationStateActionId | theId | ) |
Return property panel's action like ok, cancel, help.
If there is no such action, it will be created.
| QAction * XGUI_ActionsMgr::action | ( | const QString & | theId | ) |
Return an action by the given id, if it was registered in the manager.
| ActionInfo XGUI_ActionsMgr::actionInfoById | ( | const QString & | theId | ) |
Return info (icon, text, etc) about the action by the given id, if it was registered in the manager.
|
inlinevirtualinherited |
Listener that needs mostly grouped messages received returns true in this method.
In this case during the message is flushed, all the new messages are grouped, not sended immideately and then sent in the end of flush.
Reimplemented in SketchSolver_Manager, and SketchPlugin_OverConstraintsResolver.
|
protectedinherited |
Allows to group messages while they are flushed (for flush for groupMessages=true listeners)
|
protectedinherited |
Sends myGroups on flush finish.