From 4ccd68eb1041511f82d99ec56c187b2d8fb385e5 Mon Sep 17 00:00:00 2001 From: dmv Date: Thu, 4 Dec 2008 12:43:20 +0000 Subject: [PATCH] IPAL20702 5x: cyclic Sweep - regress --- src/VISUGUI/VisuGUI.cxx | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/VISUGUI/VisuGUI.cxx b/src/VISUGUI/VisuGUI.cxx index de3cf94e..0f6608bd 100644 --- a/src/VISUGUI/VisuGUI.cxx +++ b/src/VISUGUI/VisuGUI.cxx @@ -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 ); } } -- 2.39.2