]> Creatis software - clitk.git/commitdiff
Modifications for Windows compilation
authortbaudier <thomas.baudier@creatis.insa-lyon.fr>
Tue, 19 Jul 2016 14:55:20 +0000 (16:55 +0200)
committertbaudier <thomas.baudier@creatis.insa-lyon.fr>
Tue, 19 Jul 2016 14:55:20 +0000 (16:55 +0200)
common/clitkMatrix.cxx
vv/vvMainWindow.cxx

index c911f55b0f452d4e6e5b8df0af3ab1dfd0869878..2c09f311dd523416720c3496e890de46eaf1397b 100644 (file)
@@ -17,6 +17,7 @@
 ===========================================================================**/
 
 #include "clitkMatrix.h"
+#include <algorithm>
 
 //--------------------------------------------------------------------
 namespace clitk {
index 3da4be743f0049b838b35193b49c03e0115f9e4b..1bc0759e8ee14671f60a29dcc493623f2f0293b0 100644 (file)
@@ -378,12 +378,13 @@ vvMainWindow::vvMainWindow():vvMainWindowBase()
   vvToolManager::GetInstance()->InsertToolsInMenu(this);
   vvToolManager::GetInstance()->EnableToolsInMenu(this, false);
 
-#ifndef CLITK_EXPERIMENTAL
-#define CLITK_EXPERIMENTAL 0
-#endif
+//#ifndef CLITK_EXPERIMENTAL
+//#define CLITK_EXPERIMENTAL 0
+//#endif
+#ifdef CLITK_EXPERIMENTAL
   if (!CLITK_EXPERIMENTAL)
     menuExperimental->menuAction()->setVisible(false);
-
+#endif
 
   QTimer * timerMemory = new QTimer(this);
   //timerMemory->setInterval(5);
@@ -3386,7 +3387,7 @@ void vvMainWindow::SaveScreenshot(QVTKWidget *widget)
       vidwriter = mpg;
       mpg->SetQuality(2);
       bool ok;
-      int fps = QInputDialog::getInteger(this, tr("Number of frames per second"),
+      int fps = QInputDialog::getInt(this, tr("Number of frames per second"),
         tr("FPS:"), 5, 0, 1024, 1, &ok);
       if(!ok)
         fps = 5;
@@ -3399,7 +3400,7 @@ void vvMainWindow::SaveScreenshot(QVTKWidget *widget)
       vidwriter = mpg;
       mpg->SetQuality(2);
       bool ok;
-      int fps = QInputDialog::getInteger(this, tr("Number of frames per second"),
+      int fps = QInputDialog::getInt(this, tr("Number of frames per second"),
         tr("FPS:"), 5, 0, 1024, 1, &ok);
       if(!ok)
         fps = 5;