diff options
| author | Patrick Storz <eduard.braun2@gmx.de> | 2019-10-12 17:09:34 +0000 |
|---|---|---|
| committer | Patrick Storz <eduard.braun2@gmx.de> | 2019-10-12 17:11:04 +0000 |
| commit | 7904e4c58670c77b94c11fd7a6752a447e0f7223 (patch) | |
| tree | bacef55514cf5e1c31bae351054470a17a7421d2 /src | |
| parent | CMake: Avoid reordering CMAKE_CXX_FLAGS (diff) | |
| download | inkscape-7904e4c58670c77b94c11fd7a6752a447e0f7223.tar.gz inkscape-7904e4c58670c77b94c11fd7a6752a447e0f7223.zip | |
Revert "Remove unused "nopref" variant of effects"
This reverts commit ef84b6a06b8fe5be8c15384cd95a35bc6d0c95a7.
Diffstat (limited to 'src')
| -rw-r--r-- | src/extension/effect.cpp | 3 | ||||
| -rw-r--r-- | src/extension/effect.h | 7 |
2 files changed, 10 insertions, 0 deletions
diff --git a/src/extension/effect.cpp b/src/extension/effect.cpp index db00a77a9..1a84e3df1 100644 --- a/src/extension/effect.cpp +++ b/src/extension/effect.cpp @@ -36,7 +36,10 @@ Inkscape::XML::Node * Effect::_filters_list = nullptr; Effect::Effect (Inkscape::XML::Node *in_repr, Implementation::Implementation *in_imp, std::string *base_directory) : Extension(in_repr, in_imp, base_directory) + , _id_noprefs(Glib::ustring(get_id()) + ".noprefs") + , _name_noprefs(Glib::ustring(_(get_name())) + _(" (No preferences)")) , _verb(get_id(), get_name(), nullptr, nullptr, this, true) + , _verb_nopref(_id_noprefs.c_str(), _name_noprefs.c_str(), nullptr, nullptr, this, false) , _menu_node(nullptr), _workingDialog(true) , _prefDialog(nullptr) { diff --git a/src/extension/effect.h b/src/extension/effect.h index 39412dda5..11b252cf4 100644 --- a/src/extension/effect.h +++ b/src/extension/effect.h @@ -87,8 +87,15 @@ class Effect : public Extension { } }; + /** \brief ID used for the verb without preferences */ + Glib::ustring _id_noprefs; + /** \brief Name used for the verb without preferences */ + Glib::ustring _name_noprefs; + /** \brief The verb representing this effect. */ EffectVerb _verb; + /** \brief The verb representing this effect. Without preferences. */ + EffectVerb _verb_nopref; /** \brief Menu node created for this effect */ Inkscape::XML::Node * _menu_node; /** \brief Whether a working dialog should be shown */ |
