summaryrefslogtreecommitdiffstats
path: root/src/extension/effect.h
diff options
context:
space:
mode:
authorPatrick Storz <eduard.braun2@gmx.de>2019-09-01 19:49:18 +0000
committerPatrick Storz <eduard.braun2@gmx.de>2019-09-01 19:50:16 +0000
commit5e8e0a6bdd15427faa16d6432b9fbd7bbe0d6335 (patch)
tree37dfb161397255903dd32fe27302fb308e5b9d4a /src/extension/effect.h
parentAdd 'vector-effect' to CSS and attribute lists. (diff)
parentUpdate internal extensions for latest .inx format changes (diff)
downloadinkscape-5e8e0a6bdd15427faa16d6432b9fbd7bbe0d6335.tar.gz
inkscape-5e8e0a6bdd15427faa16d6432b9fbd7bbe0d6335.zip
Extension updates for 1.0 (!808)
Diffstat (limited to 'src/extension/effect.h')
-rw-r--r--src/extension/effect.h22
1 files changed, 8 insertions, 14 deletions
diff --git a/src/extension/effect.h b/src/extension/effect.h
index 1eb04cd15..39412dda5 100644
--- a/src/extension/effect.h
+++ b/src/extension/effect.h
@@ -68,17 +68,17 @@ class Effect : public Extension {
Effect * effect,
bool showPrefs) :
Verb(id, _(name), _(tip), image, _("Extensions")),
- _effect(effect),
+ _effect(effect),
_showPrefs(showPrefs),
_elip_name(nullptr) {
/* No clue why, but this is required */
this->set_default_sensitive(true);
- if (_showPrefs && effect != nullptr && effect->param_visible_count() != 0) {
+ if (_showPrefs && effect != nullptr && effect->widget_visible_count() != 0) {
_elip_name = g_strdup_printf("%s...", _(name));
set_name(_elip_name);
}
}
-
+
/** \brief Destructor */
~EffectVerb() override {
if (_elip_name != nullptr) {
@@ -87,15 +87,8 @@ 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 */
@@ -104,10 +97,11 @@ class Effect : public Extension {
/** \brief The preference dialog if it is shown */
PrefDialog * _prefDialog;
public:
- Effect (Inkscape::XML::Node * in_repr,
- Implementation::Implementation * in_imp);
- ~Effect () override;
- bool check () override;
+ Effect(Inkscape::XML::Node *in_repr, Implementation::Implementation *in_imp, std::string *base_directory);
+ ~Effect () override;
+
+ bool check() override;
+
bool prefs (Inkscape::UI::View::View * doc);
void effect (Inkscape::UI::View::View * doc);
/** \brief Accessor function for a pointer to the verb */