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
Improve ModelAPI_ValidatorsFactory interface + Introduce validate(attribute) method.
[modules/shaper.git]
/
src
/
XGUI
/
XGUI_ActionsMgr.h
diff --git
a/src/XGUI/XGUI_ActionsMgr.h
b/src/XGUI/XGUI_ActionsMgr.h
index cbff72d128403194a4c6858a045df346833b9326..0acc6a26a98b8254fc501c208b9f57b8b57e9c00 100644
(file)
--- a/
src/XGUI/XGUI_ActionsMgr.h
+++ b/
src/XGUI/XGUI_ActionsMgr.h
@@
-12,6
+12,8
@@
#include <Events_Listener.h>
#include <ModelAPI_Feature.h>
#include <Events_Listener.h>
#include <ModelAPI_Feature.h>
+#include <ModuleBase_ActionInfo.h>
+
#include <QObject>
#include <QMap>
#include <QList>
#include <QObject>
#include <QMap>
#include <QList>
@@
-37,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,
@@
-77,6
+80,9
@@
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 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
public slots:
//! Update workbench actions according to OperationMgr state:
//! No active operations: all actions but nested are available