X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=vv%2FvvMainWindowBase.cxx;h=178396255482dad3416b249f584c9c3a0ccf55fc;hb=71e5a41c04015e6fc1df20d68b01d6f10588a717;hp=c94b1cd7026bbcf50cb0d4bf6cf144a805c1558a;hpb=1e034c70105f0926939acaaa27ddb46e904ae8bf;p=clitk.git diff --git a/vv/vvMainWindowBase.cxx b/vv/vvMainWindowBase.cxx index c94b1cd..1783962 100644 --- a/vv/vvMainWindowBase.cxx +++ b/vv/vvMainWindowBase.cxx @@ -15,6 +15,17 @@ - BSD See included LICENSE.txt file - CeCILL-B http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html ======================================================================-====*/ + #include "vvMainWindowBase.h" +//------------------------------------------------------------------------------ +QMenu * vvMainWindowBase::GetMenu(std::string menuName) const +{ + if (menuName == "Tools") return mMenuTools; + if (menuName == "Segmentation") return mMenuSegmentation; + std::cerr << "Error in vvMainWindowBase::GetMenu: menu '" << menuName << "' is unknown." << std::endl; + exit(0); +} +//------------------------------------------------------------------------------ +