From: vsr Date: Fri, 8 Apr 2011 07:34:09 +0000 (+0000) Subject: Fix problem with preview X-Git-Tag: V6_3_0a1~10 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=2e8ab97a1d99f7c4869f1899940d5513f9f2fea2;p=modules%2Fgeom.git Fix problem with preview --- diff --git a/src/BasicGUI/BasicGUI_MarkerDlg.cxx b/src/BasicGUI/BasicGUI_MarkerDlg.cxx index aa7650d04..a275efd4e 100644 --- a/src/BasicGUI/BasicGUI_MarkerDlg.cxx +++ b/src/BasicGUI/BasicGUI_MarkerDlg.cxx @@ -284,7 +284,7 @@ void BasicGUI_MarkerDlg::ConstructorsClicked( int constructorId ) } } - displayPreview(true); + displayPreview(); qApp->processEvents(); updateGeometry(); @@ -352,7 +352,7 @@ void BasicGUI_MarkerDlg::onSelectionDone0() myData[ DY2 ]->setValue( aYDir.Y() ); myData[ DZ2 ]->setValue( aYDir.Z() ); } - displayPreview(true); + displayPreview(); return; } aSelectedObject = getSelected( TopAbs_VERTEX ); @@ -361,7 +361,7 @@ void BasicGUI_MarkerDlg::onSelectionDone0() myData[ X ]->setValue( aPnt.X() ); myData[ Y ]->setValue( aPnt.Y() ); myData[ Z ]->setValue( aPnt.Z() ); - displayPreview(true); + displayPreview(); return; } } @@ -424,7 +424,7 @@ void BasicGUI_MarkerDlg::onSelectionDone() } } - displayPreview(true); + displayPreview(); } //================================================================================= @@ -618,7 +618,7 @@ void BasicGUI_MarkerDlg::addSubshapesToStudy() //================================================================================= void BasicGUI_MarkerDlg::onValueChanged( double ) { - displayPreview(true); + displayPreview(); } //================================================================================= @@ -631,7 +631,7 @@ void BasicGUI_MarkerDlg::displayPreview ( const bool activate, const double lineWidth ) { if ( !myBlockPreview ) { - GEOMBase_Skeleton::displayPreview( activate, update, toRemoveFromEngine, lineWidth ); + GEOMBase_Skeleton::displayPreview( true, activate, update, toRemoveFromEngine, lineWidth ); if ( myConstructorId == 0 ) GEOMBase_Skeleton::activate( GEOM_MARKER ); } diff --git a/src/BlocksGUI/BlocksGUI_ExplodeDlg.cxx b/src/BlocksGUI/BlocksGUI_ExplodeDlg.cxx index 0565ef730..614bac622 100644 --- a/src/BlocksGUI/BlocksGUI_ExplodeDlg.cxx +++ b/src/BlocksGUI/BlocksGUI_ExplodeDlg.cxx @@ -307,7 +307,7 @@ void BlocksGUI_ExplodeDlg::activateSelection() SIGNAL( currentSelectionChanged() ), this, SLOT( SelectionIntoArgument() ) ); } else { - displayPreview( true, true, false ); + displayPreview( true, true, true, false ); globalSelection( GEOM_PREVIEW ); } } diff --git a/src/EntityGUI/EntityGUI_3DSketcherDlg.cxx b/src/EntityGUI/EntityGUI_3DSketcherDlg.cxx index d2a827229..3ee97cb86 100755 --- a/src/EntityGUI/EntityGUI_3DSketcherDlg.cxx +++ b/src/EntityGUI/EntityGUI_3DSketcherDlg.cxx @@ -179,7 +179,7 @@ void EntityGUI_3DSketcherDlg::Init() initName( tr( "GEOM_3DSKETCHER" ) ); UpdateButtonsState(); - GEOMBase_Helper::displayPreview( false, true, true, myLineWidth ); + GEOMBase_Helper::displayPreview( true, false, true, true, myLineWidth ); } //================================================================================= @@ -246,7 +246,7 @@ void EntityGUI_3DSketcherDlg::ClickOnAddPoint() Group3Spin->SpinBox_DZ->setValue( 0.0 ); } UpdateButtonsState(); - GEOMBase_Helper::displayPreview( false, true, true, myLineWidth ); + GEOMBase_Helper::displayPreview( true, false, true, true, myLineWidth ); } //================================================================================= @@ -270,7 +270,7 @@ void EntityGUI_3DSketcherDlg::ClickOnUndo() if (myPointsList.count() > 0) { myRedoList.append( myPointsList.takeLast() ); UpdateButtonsState(); - GEOMBase_Helper::displayPreview( false, true, true, myLineWidth ); + GEOMBase_Helper::displayPreview( true, false, true, true, myLineWidth ); } } @@ -283,7 +283,7 @@ void EntityGUI_3DSketcherDlg::ClickOnRedo() if ( myRedoList.count() > 0) { myPointsList.append( myRedoList.takeLast() ); UpdateButtonsState(); - GEOMBase_Helper::displayPreview( false, true, true, myLineWidth ); + GEOMBase_Helper::displayPreview( true, false, true, true, myLineWidth ); } } @@ -344,7 +344,7 @@ void EntityGUI_3DSketcherDlg::SelectionIntoArgument() } } } - GEOMBase_Helper::displayPreview( false, true, true, myLineWidth ); + GEOMBase_Helper::displayPreview( true, false, true, true, myLineWidth ); } //================================================================================= @@ -374,7 +374,7 @@ void EntityGUI_3DSketcherDlg::ActivateThisDialog() SIGNAL( currentSelectionChanged() ), this, SLOT( SelectionIntoArgument() ) ); localSelection( GEOM::GEOM_Object::_nil(), TopAbs_VERTEX ); - GEOMBase_Helper::displayPreview( false, true, true, myLineWidth ); + GEOMBase_Helper::displayPreview( true, false, true, true, myLineWidth ); } @@ -384,7 +384,7 @@ void EntityGUI_3DSketcherDlg::ActivateThisDialog() //================================================================================= void EntityGUI_3DSketcherDlg::ValueChangedInSpinBox( double newValue ) { - GEOMBase_Helper::displayPreview( false, true, true, myLineWidth ); + GEOMBase_Helper::displayPreview( true, false, true, true, myLineWidth ); } //=================================================================================