diff options
| author | Jabier Arraiza <jabier.arraiza@marker.es> | 2019-02-14 23:54:19 +0000 |
|---|---|---|
| committer | Jabier Arraiza <jabier.arraiza@marker.es> | 2019-02-18 21:18:27 +0000 |
| commit | 0f8dffd779f8f324c013f727ea3bb2aec6bb47e2 (patch) | |
| tree | 66439dd3b067dd67b27782e3820d3f793b823847 /src/live_effects/effect-enum.h | |
| parent | add icons missing (diff) | |
| download | inkscape-0f8dffd779f8f324c013f727ea3bb2aec6bb47e2.tar.gz inkscape-0f8dffd779f8f324c013f727ea3bb2aec6bb47e2.zip | |
Add missing icons and add double languaje
Diffstat (limited to 'src/live_effects/effect-enum.h')
| -rw-r--r-- | src/live_effects/effect-enum.h | 11 |
1 files changed, 11 insertions, 0 deletions
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) { |
