From: asl Date: Thu, 24 Aug 2006 13:23:20 +0000 (+0000) Subject: PAL12688 - python command <3D view>.ShowPart( VISU.View.VIEWER, 0 ) don't change... X-Git-Tag: mergefrom_BR_For_OCT_611_04Sep06~9 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e09b54f7a19034b0cae59f9443c70a3e73e4a152;p=modules%2Fvisu.git PAL12688 - python command <3D view>.ShowPart( VISU.View.VIEWER, 0 ) don't change status of viewer --- diff --git a/src/VISU_I/VISU_View_i.cc b/src/VISU_I/VISU_View_i.cc index 9a60677f..abb6ad9b 100644 --- a/src/VISU_I/VISU_View_i.cc +++ b/src/VISU_I/VISU_View_i.cc @@ -156,9 +156,14 @@ namespace VISU { myApplication->setWindowShown(SalomeApp_Application::WT_LogWindow,myState); break; case VISU::View::VIEWER:{ - ViewManagerList aViewManagerList = myApplication->viewManagers(); - // to do something - // ... + ViewManagerList mgrs = myApplication->viewManagers(); + ViewManagerList::const_iterator anIt = mgrs.begin(), aLast = mgrs.end(); + for( ; anIt!=aLast; anIt++ ) + { + const QPtrVector& views = (*anIt)->getViews(); + for( int i=0; isetShown( myState ); + } break; }} }