From 0f8dffd779f8f324c013f727ea3bb2aec6bb47e2 Mon Sep 17 00:00:00 2001 From: Jabier Arraiza Date: Fri, 15 Feb 2019 00:54:19 +0100 Subject: Add missing icons and add double languaje --- src/live_effects/effect-enum.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/live_effects/effect-enum.h') diff --git a/src/live_effects/effect-enum.h b/src/live_effects/effect-enum.h index 6a50cffce..c82471439 100644 --- a/src/live_effects/effect-enum.h +++ b/src/live_effects/effect-enum.h @@ -81,6 +81,7 @@ struct EnumEffectData { const Glib::ustring label; const Glib::ustring key; const Glib::ustring icon; + const Glib::ustring untranslated_label; const Glib::ustring description; const bool on_path; const bool on_shape; @@ -178,6 +179,16 @@ class EnumEffectDataConverter { return empty_string; } + const Glib::ustring &get_untranslated_label(const E id) const + { + for (unsigned int i = 0; i < _length; ++i) { + if (_data[i].id == id) + return _data[i].untranslated_label; + } + + return empty_string; + } + const Glib::ustring &get_description(const E id) const { for (unsigned int i = 0; i < _length; ++i) { -- cgit v1.2.3