]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
MPV: fix for PAL12688: implement isPartShown for VISU viewer: return result of first...
authormpv <mpv@opencascade.com>
Mon, 15 Jan 2007 07:22:11 +0000 (07:22 +0000)
committermpv <mpv@opencascade.com>
Mon, 15 Jan 2007 07:22:11 +0000 (07:22 +0000)
src/VISU_I/VISU_View_i.cc

index bb288c0d8a58bdaed889ad644ad950e125a76fee..95b12902fd178cf8dae0830a82489b107464465f 100644 (file)
@@ -201,8 +201,16 @@ namespace VISU {
        break;
       case VISU::View::VIEWER:{
        ViewManagerList aViewManagerList = myApplication->viewManagers();
-       // to do something
-       // ...
+       ViewManagerList::const_iterator anIt = aViewManagerList.begin();
+       for( ; anIt != aViewManagerList.end(); anIt++ )
+       {
+         const QPtrVector<SUIT_ViewWindow>& views = (*anIt)->getViews();
+         for( int i=0; i<views.count(); i++ ) {
+           myResult = views[i]->isShown();
+           return;
+         }
+       }
+       myResult = false;
        break;
       }}
     }