Fix problem with preview

This commit is contained in:
vsr 2011-04-08 07:34:09 +00:00
parent b72e9263a6
commit 2e8ab97a1d
3 changed files with 14 additions and 14 deletions

View File

@ -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 );
}

View File

@ -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 );
}
}

View File

@ -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 );
}
//=================================================================================