]> Creatis software - creaImageIO.git/blobdiff - src/creaImageIOWxGimmickView.cpp
correct bug?
[creaImageIO.git] / src / creaImageIOWxGimmickView.cpp
index 3bdc716a035281c5246112fb3053f221db311d09..755a4d2e6c81c25751fab29f0beeafb0542d1b46 100644 (file)
@@ -775,10 +775,10 @@ namespace creaImageIO
 #else
   void WxGimmickView::UpdateWindowUI(long flags)
   {
-         if(mViewer)
-     {
-        mViewer->RefreshIfNecessary();
-     }
+         //if(mViewer)
+   //  {
+   //     mViewer->RefreshIfNecessary();
+   //  }
   }
 #endif
    //==================================================
@@ -1210,13 +1210,8 @@ namespace creaImageIO
   //=================================================
   void WxGimmickView::DisplayAddSummary()
   {
-    const Gimmick::AddProgress& p = mGimmick->GetAddProgress();
-    std::stringstream mess;
-    mess << "Dirs \tscanned\t: " << p.GetNumberScannedDirs()  << "\n";
-    mess << "Files\tscanned\t: " << p.GetNumberScannedFiles() << "\n";
-    mess << "Files\thandled\t: " << p.GetNumberHandledFiles() << "\n\n";
-    mess << "Files\tadded  \t: " << p.GetNumberAddedFiles()   << "\n\n";
-       time_t end;
+      std::stringstream mess(mGimmick->getSummary());
+    time_t end;
        time(&end);
        mess << "time to scan :" << difftime(end,mstart) << "sec";
     wxMessageBox(std2wx(mess.str()),_T("Addition result"),wxOK,this);