VisuGUI_CutPlanesDlg.cxx \
VisuGUI_StreamLinesDlg.cxx \
VisuGUI_VectorsDlg.cxx \
+ VisuGUI_Displayer.cxx \
+ VisuGUI_SetupPlot2dDlg.cxx \
VisuGUI_BuildProgressDlg.cxx \
VisuGUI_Timer.cxx
VisuGUI_CutPlanesDlg.h \
VisuGUI_StreamLinesDlg.h \
VisuGUI_VectorsDlg.h \
+ VisuGUI_SetupPlot2dDlg.h \
VisuGUI_BuildProgressDlg.h
LIB_CLIENT_IDL = SALOME_Exception.idl \
OnImportFromFile()
{
if(MYDEBUG) MESSAGE("VisuGUI::OnImportFromFile()");
- CheckLock(GetCStudy(GetAppStudy(this)));
+ if ( CheckLock(GetCStudy(GetAppStudy(this))) )
+ return;
VisuGUI_BuildProgressDlg* aBuildProgressDlg = new VisuGUI_BuildProgressDlg( GetDesktop(this) );
aBuildProgressDlg->setGenerator( GetVisuGen(this) );
if(aPrsObject){
if(MYDEBUG) MESSAGE("VisuGUI::OnDisplayPrs : Prs3d object");
//UpdateViewer( this, aPrsObject );
- displayer()->Display( anIO->getEntry() );
-
SVTK_ViewWindow* vw = GetViewWindow( this, /*create=*/true );
- if ( vw ) {
- vw->highlight(anIO, 1);
+ if ( vw )
+ {
+ displayer()->Display( anIO->getEntry() );
+ vw->highlight(anIO, 1);
}
continue;
}
QString aPrsVisible = "(($type in {'VISU::TMESH' " + aPrsAll + "}) and isVisible)";
QString aPrsInvisible = "(($type in {'VISU::TMESH' " + aPrsAll + "})" + andInvisible + ")";
- QString anEraseRule = "selcount>0 and (" + aPrsVisible +
+ QString anEraseRule = "selcount>0 and ({true} in $canBeDisplayed) and (" + aPrsVisible +
" or (client='ObjectBrowser' and (" + aTableOrCont + orCurveVisible + ")))";
- QString aDisplayRule = "selcount>0 and (" + aPrsInvisible +
+ QString aDisplayRule = "selcount>0 and ({true} in $canBeDisplayed) and (" + aPrsInvisible +
" or (client='ObjectBrowser' and (" + aTableOrCont + orCurveInvisible + ")))";
- QString aDOnlyRule = "selcount>0 and (($type in {'VISU::TMESH' " + aPrsAll + "})"
+ QString aDOnlyRule = "selcount>0 and ({true} in $canBeDisplayed) and (($type in {'VISU::TMESH' " + aPrsAll + "})"
" or (client='ObjectBrowser' and ((type='VISU::TTABLE' and nbChildren>0) or"
" ($type in {'VISU::TCURVE' 'VISU::TCONTAINER'}))))";
setPreferenceProperty( nbsteps, "max", 200 );
int importGr = addPreference( tr( "MED files import" ), srangeTab );
- setPreferenceProperty( importGr, "columns", 1 );
addPreference( tr( "Full MED loading" ), importGr, LightApp_Preferences::Bool, "VISU", "full_med_loading" );
- addPreference( tr( "Close progress dialog at finish" ), importGr, LightApp_Preferences::Bool, "VISU", "close_at_finish" );
}
void VisuGUI::preferencesChanged( const QString&, const QString& )