]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
IPAL20702 5x: cyclic Sweep - regress
authordmv <dmv@opencascade.com>
Thu, 4 Dec 2008 12:43:20 +0000 (12:43 +0000)
committerdmv <dmv@opencascade.com>
Thu, 4 Dec 2008 12:43:20 +0000 (12:43 +0000)
src/VISUGUI/VisuGUI.cxx

index de3cf94e8f73e430b75b9c2f0032e831321d2438..0f6608bda054e13ffb9680dc1533adf5f79ba212 100644 (file)
@@ -1912,7 +1912,10 @@ void
 VisuGUI
 ::OnSweep()
 {
-  mySweep->toggleViewAction()->setChecked(true);
+  OnDisplayPrs();
+  if ( !mySweep->toggleViewAction()->isChecked() )
+    mySweep->toggleViewAction()->trigger();
+  mySweep->onSelectionChanged();
   mySweep->onFirst();
   mySweep->onPlay(true);
 }
@@ -2540,7 +2543,7 @@ VisuGUI
                 tr("MEN_CREATE_TABLE"), "", 0, aParent, false,
                 this, SLOT(OnCreateTable()));
 
-  aPixmap = aResourceMgr->loadPixmap("VISU",tr("ICON_SWEEP"));
+  aPixmap = aResourceMgr->loadPixmap("VISU",tr("ICON_SWEEP_PANEL"));
   createAction( VISU_SWEEP, tr("MEN_SWEEP"), QIcon(aPixmap),
                 tr("MEN_SWEEP"), "", 0, aParent, false,
                 this, SLOT(OnSweep()));
@@ -3656,8 +3659,8 @@ void VisuGUI::createPreferences()
       
       int timestep   = addPreference( tr( "VISU_TIME_STEP" ), sweepGroup,
                                      LightApp_Preferences::DblSpin, "VISU", "sweeping_time_step" );
-      int nbcycles   = addPreference( tr( "VISU_NB_CYCLES" ), sweepGroup,
-                                     LightApp_Preferences::IntSpin, "VISU", "sweeping_number_cycles" );
+      /*    int nbcycles   = addPreference( tr( "VISU_NB_CYCLES" ), sweepGroup,
+           LightApp_Preferences::IntSpin, "VISU", "sweeping_number_cycles" );*/
       int nbsteps    = addPreference( tr( "VISU_NB_STEPS" ),  sweepGroup,
                                      LightApp_Preferences::IntSpin, "VISU", "sweeping_number_steps" );
       int rangeSw = addPreference( tr( "VISU_IS2PI" ), sweepGroup, LightApp_Preferences::Selector, "VISU", "sweeping_is2PI" );
@@ -3673,7 +3676,7 @@ void VisuGUI::createPreferences()
       setPreferenceProperty( timestep, "min",  0.1 );
       setPreferenceProperty( timestep, "step", 0.1 );
       setPreferenceProperty( timestep, "max",  1000 );
-      setPreferenceProperty( nbcycles, "max",  100  );
+      //    setPreferenceProperty( nbcycles, "max",  100  );
       setPreferenceProperty( nbsteps,  "max",  200  );
     }
   }