new preference: default display mode

This commit is contained in:
asl 2005-07-22 05:40:59 +00:00
parent ea8f139297
commit f5c5decc60
2 changed files with 14 additions and 2 deletions

View File

@ -3151,8 +3151,8 @@ void SMESHGUI::createPreferences()
int genTab = addPreference( tr( "PREF_TAB_GENERAL" ) ); int genTab = addPreference( tr( "PREF_TAB_GENERAL" ) );
int qaGroup = addPreference( tr( "PREF_GROUP_QUALITY" ), genTab ); int qaGroup = addPreference( tr( "PREF_GROUP_QUALITY" ), genTab );
addPreference( tr( "PREF_DISPLAY_ENTITY" ), qaGroup, SalomeApp_Preferences::Bool, "Mesh", "display_entity" ); addPreference( tr( "PREF_DISPLAY_ENTITY" ), qaGroup, SalomeApp_Preferences::Bool, "SMESH", "display_entity" );
addPreference( tr( "PREF_AUTO_UPDATE" ), qaGroup, SalomeApp_Preferences::Bool, "Mesh", "auto_update" ); addPreference( tr( "PREF_AUTO_UPDATE" ), qaGroup, SalomeApp_Preferences::Bool, "SMESH", "auto_update" );
int precGroup = addPreference( tr( "PREF_GROUP_PRECISION" ), genTab ); int precGroup = addPreference( tr( "PREF_GROUP_PRECISION" ), genTab );
setPreferenceProperty( precGroup, "columns", 1 ); setPreferenceProperty( precGroup, "columns", 1 );
@ -3163,6 +3163,15 @@ void SMESHGUI::createPreferences()
setPreferenceProperty( prec, "min", 0 ); setPreferenceProperty( prec, "min", 0 );
setPreferenceProperty( prec, "max", 16 ); setPreferenceProperty( prec, "max", 16 );
int dispgroup = addPreference( tr( "PREF_DISPLAY_MODE" ), genTab );
int dispmode = addPreference( tr( "PREF_DISPLAY_MODE" ), dispgroup, SalomeApp_Preferences::Selector, "SMESH", "display_mode" );
QStringList modes;
modes.append( "Wireframe" );
modes.append( "Shading" );
modes.append( "Shrink" );
modes.append( "Nodes" );
setPreferenceProperty( dispmode, "strings", modes );
int meshTab = addPreference( tr( "PREF_TAB_MESH" ) ); int meshTab = addPreference( tr( "PREF_TAB_MESH" ) );
int nodeGroup = addPreference( tr( "PREF_GROUP_NODES" ), meshTab ); int nodeGroup = addPreference( tr( "PREF_GROUP_NODES" ), meshTab );

View File

@ -2800,3 +2800,6 @@ msgstr "Nodes"
msgid "SMESHGUI::PREF_ELEMENTS" msgid "SMESHGUI::PREF_ELEMENTS"
msgstr "Elements" msgstr "Elements"
msgid "SMESHGUI::PREF_DISPLAY_MODE"
msgstr "Display mode"