X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FXGUI%2FXGUI_ActionsMgr.cpp;h=611976e2a91c3da4186b17d8acf72da68f951f9b;hb=880a5c5b031fe9bbd7833fa3918af3e216d98d34;hp=8722c089649af58c9bd6f1229c8d06ba1e1c8f78;hpb=2f84d1bbdf6ddf3296f5a2bff9fcd0b31133221f;p=modules%2Fshaper.git diff --git a/src/XGUI/XGUI_ActionsMgr.cpp b/src/XGUI/XGUI_ActionsMgr.cpp index 8722c0896..611976e2a 100644 --- a/src/XGUI/XGUI_ActionsMgr.cpp +++ b/src/XGUI/XGUI_ActionsMgr.cpp @@ -116,3 +116,20 @@ void XGUI_ActionsMgr::updateCheckState() setActionChecked(eachCommand, true); } } + +QStringList XGUI_ActionsMgr::nestedCommands(const QString& theId) const +{ + if (myNestedActions.contains(theId)) + return myNestedActions[theId]; + return QStringList(); +} + +bool XGUI_ActionsMgr::isNested(const QString& theId) const +{ + foreach(QString aId, myNestedActions.keys()) { + QStringList aList = myNestedActions[aId]; + if (aList.contains(theId)) + return true; + } + return false; +} \ No newline at end of file