SalomeApp_CheckFileDlg fd( GetDesktop(this), true, tr("USE_BUILD_PROGRESS") );
fd.setWindowTitle( tr( "IMPORT_FROM_FILE" ) );
- fd.setFileMode( SalomeApp_CheckFileDlg::ExistingFiles );
+ fd.setFileMode( SalomeApp_CheckFileDlg::ExistingFiles );
fd.setFilters( aFilter );
fd.SetChecked( toUseBuildProgress );
if ( SalomeApp_CheckFileDlg::getLastVisitedPath().isEmpty() )
for ( QStringList::ConstIterator it = fileNames.begin(); it != fileNames.end(); ++it ) {
QFileInfo aFileInfo( *it );
-
+
if ( !aFileInfo.exists() ) {
// file not exist
errors.append( QString( "%1 :\n\t%2" ).arg( aFileInfo.filePath() ).
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( tr( "IMPORT_FROM_FILE" ) + " " + aFileInfo.filePath() + " ... " );
+
+ QString anInfo( tr( "IMPORT_FROM_FILE" ) + " " + aFileInfo.filePath() + " ... " );
application()->putInfo( anInfo );
-
+
VISU::Result_var aResult = GetVisuGen( this )->CreateResult( aFileInfo.filePath().toLatin1().constData() );
-
+
if ( CORBA::is_nil( aResult.in() ) ) {
errors.append( QString( "%1 :\n\t%2" ).arg( aFileInfo.filePath() ).
arg( tr( "ERR_ERROR_IN_THE_FILE" ) ) );
}
else {
try {
- QString anInfo( tr("TLT_IMPORT_TABLE") + " " + aFileInfo.filePath() + " ..." );
+ QString anInfo( tr("TLT_IMPORT_TABLE") + " " + aFileInfo.filePath() + " ..." );
application()->putInfo( anInfo );
-
+
CORBA::Object_var anObject = GetVisuGen(this)->ImportTables(aFileInfo.filePath().toLatin1().constData());
-
+
if (CORBA::is_nil(anObject.in())) {
errors.append( QString( "%1 :\n\t%2" ).arg( aFileInfo.filePath() ).
arg( tr( "ERR_ERROR_IN_THE_FILE" ) ) );
- }
+ }
else {
application()->putInfo( anInfo + tr("INF_DONE") );
}
VISU::TSelectionInfo aSelectionInfo = VISU::GetSelectedObjects(this);
if(aSelectionInfo.empty())
return;
-
+
VISU::TSelectionItem aSelectionItem = aSelectionInfo.front();
Handle(SALOME_InteractiveObject) anIO = aSelectionItem.myIO;
VISU::Base_i* aBase = aSelectionItem.myObjectInfo.myBase;
case VISU::TPOINTMAP3D: { // Table object
if (VISU::PointMap3d_i* aTable3d = dynamic_cast<VISU::PointMap3d_i*>(aBase)) {
aTable3d->SetTitle(Name.toLatin1().constData());
- aTable3d->UpdateActors();
+ aTable3d->UpdateActors();
}
break;
}
addPreference( tr( "VISU_LABELS_FORMAT" ), colorsLabelsGr,
LightApp_Preferences::String, "VISU", "scalar_bar_label_format" );
+ int frame = addPreference( "", sbarTab, LightApp_Preferences::Frame, "", "" );
+ setPreferenceProperty( frame, "orientation", "horizontal" );
+
// group: "Orientation"
- int orientGr = addPreference( tr( "VISU_ORIENTATION" ), sbarTab );
+ int orientGr = addPreference( tr( "VISU_ORIENTATION" ), frame, LightApp_Preferences::GroupBox );
setPreferenceProperty( orientGr, "columns", 2 );
int orient = addPreference( tr( "VISU_ORIENTATION" ), orientGr,
LightApp_Preferences::Selector, "VISU", "scalar_bar_orientation" );
setPreferenceProperty( orient, "strings", orients );
setPreferenceProperty( orient, "indexes", indices );
+ // group: "Scalar bars default position"
+ int scalarBarGr = addPreference( tr( "Scalar bars default position" ), frame, LightApp_Preferences::GroupBox );
+ addPreference( tr( "Arrange Scalar Bars" ), scalarBarGr, LightApp_Preferences::Bool, "VISU", "scalar_bars_default_position" );
+
+
// group: "Origin & Size Vertical"
- int posVSizeGr = addPreference( tr( "VISU_ORIGIN_AND_SIZE" ) + " " + tr( "VISU_VERTICAL" ), sbarTab );
+ int psSzFrame = addPreference( "", sbarTab, LightApp_Preferences::Frame, "", "" );
+ setPreferenceProperty( psSzFrame, "orientation", "horizontal" );
+
+ int posVSizeGr = addPreference( tr( "VISU_ORIGIN_AND_SIZE" ) + " " + tr( "VISU_VERTICAL" ),
+ psSzFrame, LightApp_Preferences::GroupBox );
setPreferenceProperty( posVSizeGr, "columns", 2 );
int xv = addPreference( tr( "VISU_X" ), posVSizeGr,
LightApp_Preferences::DblSpin, "VISU", "scalar_bar_vertical_x" );
setPreferenceProperty( bhv, "max", 100 );
// group: "Origin & Size Horizontal"
- int posHSizeGr = addPreference( tr( "VISU_ORIGIN_AND_SIZE" ) + " " + tr( "VISU_HORIZONTAL" ), sbarTab );
+ int posHSizeGr = addPreference( tr( "VISU_ORIGIN_AND_SIZE" ) + " " + tr( "VISU_HORIZONTAL" ),
+ psSzFrame, LightApp_Preferences::GroupBox );
setPreferenceProperty( posHSizeGr, "columns", 2 );
int xh = addPreference( tr( "VISU_X" ), posHSizeGr,
setPreferenceProperty( bwh, "max", 100 );
setPreferenceProperty( bhh, "max", 100 );
- // group: "Scalar bars default position"
- int scalarBarGr = addPreference( tr( "Scalar bars default position" ), sbarTab );
- addPreference( tr( "Arrange Scalar Bars" ), scalarBarGr, LightApp_Preferences::Bool, "VISU", "scalar_bars_default_position" );
-
// TAB: "CutLines"
int cutLineTab = addPreference( tr( "CutLines" ) );
SUIT_ResourceMgr* aResourceMgr = GetResourceMgr();
QString aDir = aResourceMgr->stringValue("VISU","OutputDir","");
-
+
// get name for the file
QStringList aFilter;
aFilter.append("MED Files (*.med)");
QString aBaseName = anInitFileInfo.fileName();
QString aPath = Qtx::addSlash(aDir) + aBaseName;
-
+
QFileInfo aFileInfo =
SUIT_FileDlg::getFileName(GetDesktop(this),
aPath,