]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Issue 0021385: [CEA] Modify font properties in legend
authorana <ana@opencascade.com>
Wed, 19 Oct 2011 10:00:57 +0000 (10:00 +0000)
committerana <ana@opencascade.com>
Wed, 19 Oct 2011 10:00:57 +0000 (10:00 +0000)
src/LightApp/LightApp_Application.cxx
src/LightApp/resources/LightApp.xml
src/LightApp/resources/LightApp_msg_en.ts

index 087efc14e675b82a1165b4e507660742484b1a7b..d7f99ce9e5eba00d35513d81bf16af55052ca8ec 100644 (file)
@@ -2241,6 +2241,10 @@ void LightApp_Application::createPreferences( LightApp_Preferences* pref )
   pref->setItemProperty( "strings", aValuesList,   legendPosition );
   pref->setItemProperty( "indexes", anIndicesList, legendPosition );
 
+  pref->addPreference( tr( "PREF_FONT" ), plot2dGroup, LightApp_Preferences::Font, "Plot2d", "LegendFont" );
+  
+  pref->addPreference( tr( "PREF_FONT_COLOR" ), plot2dGroup, LightApp_Preferences::Color, "Plot2d", "LegendColor" );
+
   int curveType = pref->addPreference( tr( "PREF_CURVE_TYPE" ), plot2dGroup,
                                        LightApp_Preferences::Selector, "Plot2d", "CurveType" );
   aValuesList.clear();
index ee455e71c91eda78b036aef05f620f52d0252de1..87b0a4f0396ffe95fe33e15beda932ee3c5c55dc 100644 (file)
     <parameter name="CurveType"    value="1" />
     <parameter name="HorScaleMode" value="0" />
     <parameter name="LegendPos"    value="1" />
+    <parameter name="LegendFont"   value="Helvetic,12" />
+    <parameter name="LegendColor"  value="0, 0, 0" />
     <parameter name="MarkerSize"   value="9" />
     <parameter name="ShowLegend"   value="true" />
     <parameter name="VerScaleMode" value="0" />
index 2588b85a7ccf923992b0d455920f675757843cc4..2ff4b920ed0c47a60cf0dbc4fdb0739219149810 100644 (file)
@@ -542,6 +542,10 @@ The changes will be applied on the next application session.</translation>
         <source>PREF_FONT</source>
         <translation>Font</translation>
     </message>
+    <message>
+        <source>PREF_FONT_COLOR</source>
+        <translation>Legend font color</translation>
+    </message>
     <message>
         <source>PREF_LEFT</source>
         <translation>Left</translation>