X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=vv%2FvvToolManager.cxx;h=01835f8cda5c82b7e043f240b153c9bde3e8d9a9;hb=efd6d9e388a55ba4582c319d3c11d9337ddd0be7;hp=ac699cef92ca5062fe11a3f581bad785e37bd10c;hpb=71384a98b8774c033c1626e00d30a9d130b27013;p=clitk.git diff --git a/vv/vvToolManager.cxx b/vv/vvToolManager.cxx index ac699ce..01835f8 100644 --- a/vv/vvToolManager.cxx +++ b/vv/vvToolManager.cxx @@ -19,7 +19,7 @@ #include "vvToolManager.h" #include "vvToolCreatorBase.h" #include "vvMainWindowBase.h" - +#include //------------------------------------------------------------------------------ /// Unique static instance vvToolManager* vvToolManager::mSingleton=0; @@ -55,3 +55,13 @@ void vvToolManager::InsertToolsInMenu(vvMainWindowBase * m) } //------------------------------------------------------------------------------ + +//------------------------------------------------------------------------------ +void vvToolManager::EnableToolsInMenu(vvMainWindowBase * m, bool enable){ + std::vector::iterator it; + for(it=GetInstance()->mListOfTools.begin(); it!=GetInstance()->mListOfTools.end(); ++it){ + if((*it)->mAction){ + (*it)->mAction->setEnabled(enable); + } + } +}