diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2007-10-30 22:37:20 +0000 |
|---|---|---|
| committer | johanengelen <johanengelen@users.sourceforge.net> | 2007-10-30 22:37:20 +0000 |
| commit | 2fb0d596bc5823f8d72a8a4262e147231170c9cd (patch) | |
| tree | 8bee900fb0996e66b273f598174f67bd12375407 /src/live_effects/effect.h | |
| parent | r16896@shi: ted | 2007-10-30 12:16:06 -0700 (diff) | |
| download | inkscape-2fb0d596bc5823f8d72a8a4262e147231170c9cd.tar.gz inkscape-2fb0d596bc5823f8d72a8a4262e147231170c9cd.zip | |
LPE: implement NEW path-along-path effect, i think that old one has become obsolete and is renamed accordingly. implement straight path node editting for gears effect.
(bzr r3983)
Diffstat (limited to 'src/live_effects/effect.h')
| -rw-r--r-- | src/live_effects/effect.h | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/src/live_effects/effect.h b/src/live_effects/effect.h index 844a158b5..07dd72e47 100644 --- a/src/live_effects/effect.h +++ b/src/live_effects/effect.h @@ -42,7 +42,8 @@ namespace XML { namespace LivePathEffect { enum EffectType { - SKELETAL_STROKES = 0, + PATH_ALONG_PATH = 0, + SKELETAL_STROKES, #ifdef LPE_ENABLE_TEST_EFFECTS SLANT, DOEFFECTSTACK_TEST, @@ -59,18 +60,19 @@ class Parameter; class Effect { public: - virtual ~Effect(); + static Effect* New(EffectType lpenr, LivePathEffectObject *lpeobj); - Glib::ustring getName(); + virtual ~Effect(); virtual void doEffect (SPCurve * curve); - static Effect* New(EffectType lpenr, LivePathEffectObject *lpeobj); - virtual Gtk::Widget * getWidget(); - Inkscape::XML::Node * getRepr(); - SPDocument * getSPDoc(); + virtual void resetDefaults(SPItem * item); + + Glib::ustring getName(); + Inkscape::XML::Node * getRepr(); + SPDocument * getSPDoc(); LivePathEffectObject * getLPEObj() {return lpeobj;}; void readallParameters(Inkscape::XML::Node * repr); @@ -78,6 +80,8 @@ public: void editNextParamOncanvas(SPItem * item, SPDesktop * desktop); + bool straight_original_path; + protected: Effect(LivePathEffectObject *lpeobject); |
