Salome HOME
projects
/
modules
/
shaper.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Simplified calculation of fly out distance and creation of constraints limited only...
[modules/shaper.git]
/
src
/
XGUI
/
XGUI_ActionsMgr.h
diff --git
a/src/XGUI/XGUI_ActionsMgr.h
b/src/XGUI/XGUI_ActionsMgr.h
index 00f6086efdb397fae4b389a5744343c67845895a..9191021ad42650baaae1df0944df3cea0f5d55ee 100644
(file)
--- a/
src/XGUI/XGUI_ActionsMgr.h
+++ b/
src/XGUI/XGUI_ActionsMgr.h
@@
-39,6
+39,7
@@
class XGUI_EXPORT XGUI_ActionsMgr : public QObject, public Events_Listener
XGUI_ActionsMgr(XGUI_Workshop* theWorkshop);
virtual ~XGUI_ActionsMgr();
XGUI_ActionsMgr(XGUI_Workshop* theWorkshop);
virtual ~XGUI_ActionsMgr();
+ /// Actions on operations
enum OperationStateActionId {
Abort = 0,
Accept = 1,
enum OperationStateActionId {
Abort = 0,
Accept = 1,
@@
-79,9
+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);
//! If there is no such action, it will be created.
QAction* operationStateAction(OperationStateActionId theId, QObject* theParent = 0);
+ /// 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);
ActionInfo actionInfoById(const QString& theId);
-
public slots:
+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
//! 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