diff options
author | Jan-Marek Glogowski <glogow@fbihome.de> | 2019-05-29 13:12:59 +0000 |
---|---|---|
committer | Jan-Marek Glogowski <glogow@fbihome.de> | 2019-05-29 20:13:26 +0200 |
commit | 3eba9602197da972b66f2b7cc72b61cbdffe5a52 (patch) | |
tree | 78bb2b5cb8585cf400cf3e2505cef9ab648d01d2 /starmath | |
parent | 0c62976b4713156e93aa17b9381e010491a49a24 (diff) |
SM add some help to the examples
This way the example buttons will have a name for better
accessibility, instead of being blank.
Change-Id: Ib8a509bc7a9895297eecd8a0db9455f367d93159
Reviewed-on: https://gerrit.libreoffice.org/73171
Tested-by: Jenkins
Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/inc/strings.hrc | 6 | ||||
-rw-r--r-- | starmath/source/ElementsDockingWindow.cxx | 10 |
2 files changed, 11 insertions, 5 deletions
diff --git a/starmath/inc/strings.hrc b/starmath/inc/strings.hrc index fc6f9bae05f0..eec600990ba0 100644 --- a/starmath/inc/strings.hrc +++ b/starmath/inc/strings.hrc @@ -282,6 +282,12 @@ #define RID_CATEGORY_OTHERS NC_("RID_CATEGORY_OTHERS", "Others" ) #define RID_CATEGORY_EXAMPLES NC_("RID_CATEGORY_EXAMPLES", "Examples" ) +#define RID_EXAMPLE_CIRCUMFERENCE_HELP NC_("RID_EXAMPLE_CIRCUMFERENCE_HELP", "Circumference" ) +#define RID_EXAMPLE_MASS_ENERGY_EQUIV_HELP NC_("RID_EXAMPLE_MASS_ENERGY_EQUIV_HELP", "Mass–energy equivalence" ) +#define RID_EXAMPLE_PYTHAGOREAN_THEO_HELP NC_("RID_EXAMPLE_PYTHAGOREAN_THEO_HELP", "Pythagorean theorem" ) +#define RID_EXAMPLE_A_SIMPLE_SERIES_HELP NC_("RID_EXAMPLE_A_SIMPLE_SERIES_HELP", "A simple series" ) +#define RID_EXAMPLE_GAUSS_DISTRIBUTION_HELP NC_("RID_EXAMPLE_GAUSS_DISTRIBUTION_HELP", "Gauss distribution" ) + #define RID_FONTREGULAR NC_("RID_FONTREGULAR", "Standard" ) #define RID_FONTITALIC NC_("RID_FONTITALIC", "Italic" ) #define RID_FONTBOLD NC_("RID_FONTBOLD", "Bold" ) diff --git a/starmath/source/ElementsDockingWindow.cxx b/starmath/source/ElementsDockingWindow.cxx index ef6876be7caa..d34062ddb158 100644 --- a/starmath/source/ElementsDockingWindow.cxx +++ b/starmath/source/ElementsDockingWindow.cxx @@ -234,11 +234,11 @@ const SmElementDescr SmElementsControl::m_aOthersList[] = const SmElementDescr SmElementsControl::m_aExamplesList[] = { - {"C=%pi cdot d = 2 cdot %pi cdot r", nullptr}, - {"E=mc^2", nullptr}, - {"a^2 + b^2 = c^2", nullptr}, - {"f ( x ) = sum from { { i = 0 } } to { infinity } { {f^{(i)}(0)} over {i!} x^i}", nullptr}, - {"f ( x ) = {1} over {%sigma sqrt{2%pi} }func e^-{{(x-%mu)^2} over {2%sigma^2}}", nullptr}, + {"C=%pi cdot d = 2 cdot %pi cdot r", RID_EXAMPLE_CIRCUMFERENCE_HELP}, + {"E=mc^2", RID_EXAMPLE_MASS_ENERGY_EQUIV_HELP}, + {"a^2 + b^2 = c^2", RID_EXAMPLE_PYTHAGOREAN_THEO_HELP}, + {"f ( x ) = sum from { { i = 0 } } to { infinity } { {f^{(i)}(0)} over {i!} x^i}", RID_EXAMPLE_A_SIMPLE_SERIES_HELP}, + {"f ( x ) = {1} over {%sigma sqrt{2%pi} }func e^-{{(x-%mu)^2} over {2%sigma^2}}", RID_EXAMPLE_GAUSS_DISTRIBUTION_HELP}, }; #define AS_PAIR(a) a, SAL_N_ELEMENTS(a) |