From f5c5decc60c246edabe07fbfd1c527e2b2f8a173 Mon Sep 17 00:00:00 2001 From: asl Date: Fri, 22 Jul 2005 05:40:59 +0000 Subject: [PATCH] new preference: default display mode --- src/SMESHGUI/SMESHGUI.cxx | 13 +++++++++++-- src/SMESHGUI/SMESH_msg_en.po | 3 +++ 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/src/SMESHGUI/SMESHGUI.cxx b/src/SMESHGUI/SMESHGUI.cxx index 1c75c85e7..f6ee30e07 100644 --- a/src/SMESHGUI/SMESHGUI.cxx +++ b/src/SMESHGUI/SMESHGUI.cxx @@ -3151,8 +3151,8 @@ void SMESHGUI::createPreferences() int genTab = addPreference( tr( "PREF_TAB_GENERAL" ) ); int qaGroup = addPreference( tr( "PREF_GROUP_QUALITY" ), genTab ); - addPreference( tr( "PREF_DISPLAY_ENTITY" ), qaGroup, SalomeApp_Preferences::Bool, "Mesh", "display_entity" ); - addPreference( tr( "PREF_AUTO_UPDATE" ), qaGroup, SalomeApp_Preferences::Bool, "Mesh", "auto_update" ); + addPreference( tr( "PREF_DISPLAY_ENTITY" ), qaGroup, SalomeApp_Preferences::Bool, "SMESH", "display_entity" ); + addPreference( tr( "PREF_AUTO_UPDATE" ), qaGroup, SalomeApp_Preferences::Bool, "SMESH", "auto_update" ); int precGroup = addPreference( tr( "PREF_GROUP_PRECISION" ), genTab ); setPreferenceProperty( precGroup, "columns", 1 ); @@ -3163,6 +3163,15 @@ void SMESHGUI::createPreferences() setPreferenceProperty( prec, "min", 0 ); 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 nodeGroup = addPreference( tr( "PREF_GROUP_NODES" ), meshTab ); diff --git a/src/SMESHGUI/SMESH_msg_en.po b/src/SMESHGUI/SMESH_msg_en.po index f1f419eb4..a1f2189e5 100644 --- a/src/SMESHGUI/SMESH_msg_en.po +++ b/src/SMESHGUI/SMESH_msg_en.po @@ -2800,3 +2800,6 @@ msgstr "Nodes" msgid "SMESHGUI::PREF_ELEMENTS" msgstr "Elements" + +msgid "SMESHGUI::PREF_DISPLAY_MODE" +msgstr "Display mode"