]> Creatis software - clitk.git/blobdiff - vv/vvMainWindowBase.cxx
Delete widget first, the image data after
[clitk.git] / vv / vvMainWindowBase.cxx
index c94b1cd7026bbcf50cb0d4bf6cf144a805c1558a..178396255482dad3416b249f584c9c3a0ccf55fc 100644 (file)
   - 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);
+}
+//------------------------------------------------------------------------------
+