QObject::tr("BUT_OK"));
}
if (theViewWindow) {
- theViewWindow->highlight(theIO, 1);
theViewWindow->getRenderer()->ResetCameraClippingRange();
theViewWindow->Repaint();
}
QApplication::restoreOverrideCursor();
}
delete aDlg;
- RestoreSelection(theModule, NULL/*thePrs3d*/);
+ RestoreSelection(theModule);
}
}
if (!aValue) {
if (TDlg* aDlg = new TDlg(theModule)) { // dialog box in creation mode
aDlg->initFromPrsObject(aPrs3d);
-
- if (runAndWait(aDlg,IsDlgModal) && (aDlg->storeToPrsObject(aPrs3d))) {
- if(aResourceMgr->booleanValue("VISU","display_only",false)){
- if(SPlot2d_Viewer* aPlot2d = GetPlot2dViewer(theModule, false)) aPlot2d->EraseAll();
- }
- // Optionally, create table and curves for cut lines
- QApplication::setOverrideCursor(Qt::waitCursor);
- CreateCurves( theModule,
- dynamic_cast<VISU::CutLines_i*>( aPrs3d ),
- aDlg,
- true ); // in creation mode
- UpdateObjBrowser(theModule,true,theTimeStamp);
- QApplication::restoreOverrideCursor();
- delete aDlg;
- } else {
- DeletePrs3d(theModule,aPrs3d);
- QApplication::restoreOverrideCursor();
- delete aDlg;
- return NULL;
- }
+ if (runAndWait(aDlg,IsDlgModal) && (aDlg->storeToPrsObject(aPrs3d))) {
+ if(aResourceMgr->booleanValue("VISU","display_only",false)){
+ if(SPlot2d_Viewer* aPlot2d = GetPlot2dViewer(theModule, false)) aPlot2d->EraseAll();
+ }
+ // Optionally, create table and curves for cut lines
+ QApplication::setOverrideCursor(Qt::waitCursor);
+ CreateCurves( theModule,
+ dynamic_cast<VISU::CutLines_i*>( aPrs3d ),
+ aDlg,
+ true ); // in creation mode
+ UpdateObjBrowser(theModule,true,theTimeStamp);
+ QApplication::restoreOverrideCursor();
+ delete aDlg;
+ } else {
+ DeletePrs3d(theModule,aPrs3d);
+ QApplication::restoreOverrideCursor();
+ delete aDlg;
+ return NULL;
+ }
}
}
aViewWindow = GetViewWindow<TViewer>(theModule);
// Display created presentation.
if (aViewWindow) {
- PublishInView(theModule, aPrs3d, aViewWindow, /*highlight = */true);
+ PublishInView(theModule, aPrs3d, aViewWindow);
aViewWindow->onFitAll();
AddScalarBarPosition(theModule, aViewWindow, aPrs3d, aPos);
TPrs3d_i* aPrs3d = CreateAndEditPrs3d<TPrs3d_i,TViewer,TDlg,IsDlgModal>
(theModule,theTimeStampSObj,thePublishInStudyMode);
- RestoreSelection(theModule, aPrs3d);
+ RestoreSelection(theModule);
theModule->application()->putInfo(QObject::tr("INF_DONE"));
}