]> Creatis software - clitk.git/blobdiff - vv/vvMainWindow.cxx
hide the experimental menu when CLITK_EXPERIMENTAL is not set
[clitk.git] / vv / vvMainWindow.cxx
index 36b7db0c9c18e4b7cfa7f34f19e7b99a082eecb4..578a112c70d6f004c5594199d302a3e972e259b0 100644 (file)
@@ -3,8 +3,8 @@
   Program:   vv
   Module:    $RCSfile: vvMainWindow.cxx,v $
   Language:  C++
-  Date:      $Date: 2010/03/24 10:48:18 $
-  Version:   $Revision: 1.17 $
+  Date:      $Date: 2010/03/24 13:59:01 $
+  Version:   $Revision: 1.19 $
   Author :   Pierre Seroul (pierre.seroul@gmail.com)
 
   Copyright (C) 200COLUMN_IMAGE_NAME
@@ -112,6 +112,7 @@ vvMainWindow::vvMainWindow():vvMainWindowBase() {
 
   mInputPathName = "";
   mMenuTools = menuTools;
+  mMenuExperimentalTools = menuExperimental;
   mMainWidget = this;
 
   //Init the contextMenu
@@ -320,6 +321,9 @@ vvMainWindow::vvMainWindow():vvMainWindowBase() {
 
   // Adding all new tools (insertion in the menu)
   vvToolManager::GetInstance()->InsertToolsInMenu(this);
+
+  if (!CLITK_EXPERIMENTAL)
+      menuExperimental->menuAction()->setVisible(false);
 }
 //------------------------------------------------------------------------------