X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=vv%2FvvMainWindowBase.cxx;h=1b2ea1338f3a03bb27e1853854fcae276e3286c0;hb=c0d5d01ae18a20bc453429bf0c2140f4b6317285;hp=58f37e3f55646638c12da8cea9b0b83ac8b0119d;hpb=0083c3fb2c66812489631c7551709d121de51625;p=clitk.git diff --git a/vv/vvMainWindowBase.cxx b/vv/vvMainWindowBase.cxx index 58f37e3..1b2ea13 100644 --- a/vv/vvMainWindowBase.cxx +++ b/vv/vvMainWindowBase.cxx @@ -1,3 +1,31 @@ +/*========================================================================= + Program: vv http://www.creatis.insa-lyon.fr/rio/vv + + Authors belong to: + - University of LYON http://www.universite-lyon.fr/ + - Léon Bérard cancer center http://www.centreleonberard.fr + - CREATIS CNRS laboratory http://www.creatis.insa-lyon.fr + + This software is distributed WITHOUT ANY WARRANTY; without even + the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + PURPOSE. See the copyright notices for more information. + + It is distributed under dual licence + + - 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); +} +//------------------------------------------------------------------------------ +