X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FXGUI%2FXGUI_ActionsMgr.h;h=9191021ad42650baaae1df0944df3cea0f5d55ee;hb=83a851858962e7cb250b2086ca43c8f0b2eaa787;hp=cbff72d128403194a4c6858a045df346833b9326;hpb=6c11e01149120ed3cbdb92d39ceb34e49e6670ae;p=modules%2Fshaper.git diff --git a/src/XGUI/XGUI_ActionsMgr.h b/src/XGUI/XGUI_ActionsMgr.h index cbff72d12..9191021ad 100644 --- a/src/XGUI/XGUI_ActionsMgr.h +++ b/src/XGUI/XGUI_ActionsMgr.h @@ -12,6 +12,8 @@ #include #include +#include + #include #include #include @@ -37,6 +39,7 @@ class XGUI_EXPORT XGUI_ActionsMgr : public QObject, public Events_Listener XGUI_ActionsMgr(XGUI_Workshop* theWorkshop); virtual ~XGUI_ActionsMgr(); + /// Actions on operations enum OperationStateActionId { Abort = 0, Accept = 1, @@ -77,7 +80,13 @@ class XGUI_EXPORT XGUI_ActionsMgr : public QObject, public Events_Listener //! If there is no such action, it will be created. QAction* operationStateAction(OperationStateActionId theId, QObject* theParent = 0); - public slots: + /// Return an action by the given id, if it was registered in the manager + QAction* action(const QString& theId); + + /// Return info (icon, text, etc) about the action by the given id, if it was registered in the manager + ActionInfo actionInfoById(const QString& theId); + +public slots: //! Update workbench actions according to OperationMgr state: //! No active operations: all actions but nested are available //! There is active operation: current operation + it's nested