]> Creatis software - creaImageIO.git/commitdiff
cine loop for linux correction
authorFrederic Cervenansky <Frederic.Cervenansky@creatis.insa-lyon.fr>
Tue, 26 Jan 2010 22:31:32 +0000 (22:31 +0000)
committerFrederic Cervenansky <Frederic.Cervenansky@creatis.insa-lyon.fr>
Tue, 26 Jan 2010 22:31:32 +0000 (22:31 +0000)
src2/creaImageIOWxGimmickView.cpp
src2/creaImageIOWxGimmickView.h
src2/creaImageIOWxViewer.cpp

index 77f2a5234c010e0f9be2ca1ea64b5100ca64e081..b2f3d2802a29fe4531e4cefb895827d8ccb9d171 100644 (file)
@@ -651,7 +651,13 @@ namespace creaImageIO
   //==================================================
 
   //==================================================
-
+  void WxGimmickView::UpdateWindowUI(long flags)
+  {
+         if(mViewer)
+     {
+        mViewer->RefreshIfNecessary();
+     }
+  }
   //==================================================
    void  WxGimmickView::OnInternalIdle()
    {
index 61fcc7d0367f4d3234974e6cc545836ae67fc2a8..63723f238f77c8d5b0e9ec0336d1ea0516d7fb67 100644 (file)
@@ -189,6 +189,7 @@ namespace creaImageIO
     /// Called upon to refresh the viewer once there are no actions to be done
     void OnInternalIdle();
 
+       void UpdateWindowUI(long flags = wxUPDATE_UI_NONE);
        /// callback to add a database
        void OnAddDB(wxCommandEvent& event);
     
index 46ba59aa60c773179e0230047085bb3c39af9a80..c0180a0afd5b9cb0ff73c57d2190222d7c8ab53b 100644 (file)
@@ -133,9 +133,10 @@ namespace creaImageIO
   void WxViewer::ShowNextImage()
   {
         
-       #if WIN32       
+       
+         mMutex.Unlock();
        wxMutexLocker lock(mMutex);
-       #endif
+       
            
     GimmickMessage(2,"WxViewer::ShowNextImage() "
                   <<mCurrent+1<<"/"