_PTR(ChildIterator) anIter ( aStudy->NewChildIterator( SC ) );
anIter->InitEx( true );
- SUIT_OverrideCursor();
+ SUIT_OverrideCursor wc;
while( anIter->More() ) {
_PTR(SObject) valSO ( anIter->Value() );
//=====================================================================================
void DisplayGUI::EraseAll()
{
- SUIT_OverrideCursor();
+ SUIT_OverrideCursor wc;
SUIT_Application* app = getGeometryGUI()->getApp();
if ( app ) {
aSelMgr->selectedObjects(aList, "ObjectBrowser", false);
SALOME_ListIteratorOfListIO It (aList);
- SUIT_OverrideCursor();
+ SUIT_OverrideCursor wc;
for (; It.More(); It.Next()) {
Handle(SALOME_InteractiveObject) anIObject = It.Value();
aSelMgr->selectedObjects( aList );
SALOME_ListIteratorOfListIO It( aList );
- SUIT_OverrideCursor();
+ SUIT_OverrideCursor wc;
for( ;It.More();It.Next() ) {
Handle(SALOME_InteractiveObject) anIObject = It.Value();
aSelMgr->selectedObjects( aList );
SALOME_ListIteratorOfListIO It( aList );
- SUIT_OverrideCursor();
+ SUIT_OverrideCursor wc;
for( ; It.More(); It.Next() ) {
Handle(SALOME_InteractiveObject) anIObject = It.Value();
//=====================================================================================
void DisplayGUI::SetDisplayMode( const int mode, SUIT_ViewWindow* viewWindow )
{
- SUIT_OverrideCursor();
+ SUIT_OverrideCursor wc;
SalomeApp_Application* app = getGeometryGUI()->getApp();
if ( !app ) return;
//=====================================================================================
void DisplayGUI::SetVectorMode( const bool mode, SUIT_ViewWindow* viewWindow )
{
- SUIT_OverrideCursor();
+ SUIT_OverrideCursor wc;
SalomeApp_Application* app = getGeometryGUI()->getApp();
if ( !app ) return;
//=====================================================================================
void DisplayGUI::SetVerticesMode( const bool mode, SUIT_ViewWindow* viewWindow )
{
- SUIT_OverrideCursor();
+ SUIT_OverrideCursor wc;
SalomeApp_Application* app = getGeometryGUI()->getApp();
if ( !app ) return;
SalomeApp_Study* aStudy = dynamic_cast< SalomeApp_Study* >( app->activeStudy() );
if ( !aStudy ) return;
- SUIT_OverrideCursor();
+ SUIT_OverrideCursor wc;
SALOME_ListIO selected;
aSelMgr->selectedObjects( selected );
QColor c( (int)( aColor.R * 255.0 ), (int)( aColor.G * 255.0 ), (int)( aColor.B * 255.0 ) );
- SUIT_OverrideCursor();
+ SUIT_OverrideCursor wc;
appStudy->setObjectProperty( aMgrId, aChildObject->GetStudyEntry(), GEOM::propertyName( GEOM::Color ), c );
Handle( SALOME_InteractiveObject ) io = new SALOME_InteractiveObject( aChildObject->GetStudyEntry(), "GEOM", "" );
aSColor.B = (double)color.blue() / 255.0;
// iterate through list of objects and assign new color
- SUIT_OverrideCursor();
+ SUIT_OverrideCursor wc;
for ( SALOME_ListIteratorOfListIO It( selected ); It.More(); It.Next() ) {
Handle( SALOME_InteractiveObject ) io = It.Value();
GEOM::GEOM_Object_var aObject = GEOMBase::ConvertIOinGEOMObject( io );
NbIsosDlg->setV( VIso );
if ( NbIsosDlg->exec() ) {
- SUIT_OverrideCursor();
+ SUIT_OverrideCursor wc;
newNbUIso = NbIsosDlg->getU();
newNbVIso = NbIsosDlg->getV();
} else //Cancel case
( SUIT_Session::session()->activeApplication()->desktop() );
DeflectionDlg->setTheDC( aDC );
if ( DeflectionDlg->exec() ) {
- SUIT_OverrideCursor();
+ SUIT_OverrideCursor wc;
aDC = DeflectionDlg->getTheDC();
for ( SALOME_ListIteratorOfListIO It( selected ); It.More(); It.Next() ) {
Dlg->setTheLW( aWidth );
if ( Dlg->exec() ) {
- SUIT_OverrideCursor();
+ SUIT_OverrideCursor wc;
aWidth = Dlg->getTheLW();
} else
return; //Cancel case
Dlg->setTheLW( aWidth );
if ( Dlg->exec() ) {
- SUIT_OverrideCursor();
+ SUIT_OverrideCursor wc;
aWidth = Dlg->getTheLW();
} else
return; //Cancel case
return;
}
- SUIT_OverrideCursor();
+ SUIT_OverrideCursor wc;
for ( SALOME_ListIteratorOfListIO It( selected ); It.More(); It.Next() ) {
aView->SetTransparency( It.Value(), newValue );
aStudy->setObjectProperty( aMgrId , It.Value()->getEntry(), GEOM::propertyName( GEOM::Transparency ) , newValue );
return;
}
- SUIT_OverrideCursor();
+ SUIT_OverrideCursor wc;
OCCViewer_Viewer* vm = dynamic_cast<OCCViewer_Viewer*>( window->getViewManager()->getViewModel() );
if ( !vm )
return;
return;
}
- SUIT_OverrideCursor();
+ SUIT_OverrideCursor wc;
GEOMGUI_DimensionProperty aDimensions( anActiveStudy, anIObject->getEntry() );
erasePreview(false);
try {
- SUIT_OverrideCursor();
+ SUIT_OverrideCursor wc;
getDisplayer()->SetColor(Quantity_NOC_VIOLET);
getDisplayer()->SetToActivate(false);
int nbPairs = 0;
int aLevel = myLevelBox->currentIndex();
+ SUIT_OverrideCursor wc;
+
try {
HasSelfInte = !anOper->CheckSelfIntersections(myObj, aLevel, myInters);
nbPairs = myInters->length()/2;
erasePreview(false);
try {
- SUIT_OverrideCursor();
+ SUIT_OverrideCursor wc;
getDisplayer()->SetColor(Quantity_NOC_VIOLET);
getDisplayer()->SetToActivate(false);
//=================================================================================
void MeasureGUI_FastCheckIntersectionsDlg::onCompute()
{
+ SUIT_OverrideCursor wc;
+
myShapeList1->clear();
myShapeList2->clear();
erasePreview( false );
try {
- SUIT_OverrideCursor();
+ SUIT_OverrideCursor wc;
getDisplayer()->SetColor( Quantity_NOC_VIOLET );
getDisplayer()->SetToActivate( false );
return false;
}
- SUIT_OverrideCursor();
+ SUIT_OverrideCursor wc;
TopExp::MapShapes( aSelShape, anIndices);
SALOME_Prs* aPrs = 0;