summaryrefslogtreecommitdiffstats
path: root/src/live_effects/effect.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/live_effects/effect.h')
-rw-r--r--src/live_effects/effect.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/live_effects/effect.h b/src/live_effects/effect.h
index ad2d5126f..1255595d0 100644
--- a/src/live_effects/effect.h
+++ b/src/live_effects/effect.h
@@ -18,6 +18,7 @@
#include "util/enums.h"
#include "sp-lpe-item.h"
#include "knotholder.h"
+#include "parameter/bool.h"
#define LPE_CONVERSION_TOLERANCE 0.01 // FIXME: find good solution for this.
@@ -75,8 +76,6 @@ enum EffectType {
extern const Util::EnumData<EffectType> LPETypeData[INVALID_LPE];
extern const Util::EnumDataConverter<EffectType> LPETypeConverter;
-class Parameter;
-
class Effect {
public:
static Effect* New(EffectType lpenr, LivePathEffectObject *lpeobj);
@@ -111,6 +110,8 @@ public:
void readallParameters(Inkscape::XML::Node * repr);
void setParameter(const gchar * key, const gchar * new_value);
+ inline bool isVisible() { return is_visible; }
+
void editNextParamOncanvas(SPItem * item, SPDesktop * desktop);
protected:
@@ -135,6 +136,8 @@ protected:
std::vector<Parameter *> param_vector;
std::vector<std::pair<SPKnotHolderSetFunc, SPKnotHolderGetFunc> > knotholder_func_vector;
int oncanvasedit_it;
+ BoolParam is_visible;
+
Inkscape::UI::Widget::Registry wr;
LivePathEffectObject *lpeobj;