CORBA::Object_var anObj = VISU::ClientSObjectToObject(theSObject);
if (!CORBA::is_nil(anObj)) {
+ ErasePrs(theModule, anObj);
+
VISU::RemovableObject_var aRemovableObject = VISU::RemovableObject::_narrow(anObj);
if (!CORBA::is_nil(aRemovableObject)) {
aRemovableObject->RemoveFromStudy();
}
}
thePrs->RemoveFromStudy();
- theModule->updateObjBrowser(); //update Object browser
}
void
return aActor;
if(SVTK_ViewWindow* aView = GetViewWindow(theModule)){
QApplication::setOverrideCursor( Qt::waitCursor );
- if(aActor = thePrs->CreateActor()){
- aView->AddActor(aActor);
+ try{
+ if(aActor = thePrs->CreateActor())
+ aView->AddActor(aActor);
+ }catch(std::exception& exc){
+ SUIT_MessageBox::warn1(GetDesktop(theModule),
+ QObject::tr("WRN_VISU"),
+ QObject::tr("ERR_CANT_CREATE_ACTOR"),
+ QObject::tr("BUT_OK"));
}
QApplication::restoreOverrideCursor();
}
}
}
}
- theModule->updateObjBrowser();
PlotContainer( theModule, pContainer, VISU::eDisplay );
}
}
timer.Show();
#endif
theModule->application()->putInfo(QObject::tr("INF_DONE"));
+ // Make "Save" button active
+ theModule->getApp()->updateActions();
} catch (std::runtime_error& exc) {
INFOS(exc.what());
SUIT_MessageBox::warn1 (GetDesktop(theModule),