]> 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 77f2a52..b2f3d28 100644 (file)
@@ -651,7 +651,13 @@ namespace creaImageIO
   //==================================================
 
   //==================================================
-
+  void WxGimmickView::UpdateWindowUI(long flags)
+  {
+         if(mViewer)
+     {
+        mViewer->RefreshIfNecessary();
+     }
+  }
   //==================================================
    void  WxGimmickView::OnInternalIdle()
    {
index 61fcc7d..63723f2 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 46ba59a..c0180a0 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<<"/"