X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=vv%2FvvToolManager.cxx;h=01835f8cda5c82b7e043f240b153c9bde3e8d9a9;hb=744196f3cdd679570572bc69c67c258b973eca58;hp=ac699cef92ca5062fe11a3f581bad785e37bd10c;hpb=765020625fbc092d283e221e36c83e60a1844cb7;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); + } + } +}