if ( CheckLock(GetCStudy(GetAppStudy(this)),GetDesktop(this)) )
return;
+ SUIT_ResourceMgr* aResourceMgr = GetResourceMgr();
+
// Get file name
QStringList aFilter;
aFilter.append( tr( "FLT_MED_FILES" ) );
aFilter.append( tr( "FLT_ALL_FILES" ) );
- bool toUseBuildProgress = GetResourceMgr()->booleanValue("VISU", "use_build_progress", false);
+ bool toUseBuildProgress = aResourceMgr->booleanValue("VISU", "use_build_progress", false);
SalomeApp_CheckFileDlg* fd = new SalomeApp_CheckFileDlg( GetDesktop(this), true, tr("USE_BUILD_PROGRESS") );
fd->setCaption( tr( "IMPORT_FROM_FILE" ) );
if ( !toUseBuildProgress )
{
+ bool toBuildFields = aResourceMgr->booleanValue( "VISU", "build_fields", true );
+ bool toBuildMinMax = aResourceMgr->booleanValue( "VISU", "build_min_max", true );
+ bool toBuildGroups = aResourceMgr->booleanValue( "VISU", "build_groups", true );
+ bool toBuildAll = aResourceMgr->booleanValue( "VISU", "full_med_loading", false );
+ bool toBuildAtOnce = aResourceMgr->booleanValue( "VISU", "build_at_once", false );
+
QString anInfo("Importing From File " + aFileInfo.filePath() + "..." );
application()->putInfo( anInfo );
- VISU::Result_var aResult = GetVisuGen(this)->ImportFile(aFileInfo.filePath());
+
+ QApplication::setOverrideCursor(Qt::waitCursor);
+ VISU::Result_var aResult = GetVisuGen(this)->CreateResult( aFileInfo.filePath() );
+ aResult->SetBuildFields( toBuildFields, toBuildMinMax );
+ aResult->SetBuildGroups( toBuildGroups );
+ aResult->Build( toBuildAll, toBuildAtOnce );
+ QApplication::restoreOverrideCursor();
+
if (CORBA::is_nil(aResult.in())) {
SUIT_MessageBox::warn1(GetDesktop(this),
tr("WRN_VISU"),