diff options
| author | Maximilian Albert <maximilian.albert@gmail.com> | 2008-05-19 17:02:06 +0000 |
|---|---|---|
| committer | cilix42 <cilix42@users.sourceforge.net> | 2008-05-19 17:02:06 +0000 |
| commit | 9b424870613f4b345cf64bdfcb03889077a0597a (patch) | |
| tree | 9b5251a8c8cff0c47b82bd7f2c0aafd22a2b85b0 /src/live_effects/effect.h | |
| parent | Applying several of Inductiveload's enhancements and fixes to his extensions.... (diff) | |
| download | inkscape-9b424870613f4b345cf64bdfcb03889077a0597a.tar.gz inkscape-9b424870613f4b345cf64bdfcb03889077a0597a.zip | |
Add checkbox for LPEs to temporarily disable them on canvas (but keep them applied to the object)
(bzr r5711)
Diffstat (limited to 'src/live_effects/effect.h')
| -rw-r--r-- | src/live_effects/effect.h | 7 |
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; |
