diff options
| author | Maximilian Albert <maximilian.albert@gmail.com> | 2008-06-08 18:47:19 +0000 |
|---|---|---|
| committer | cilix42 <cilix42@users.sourceforge.net> | 2008-06-08 18:47:19 +0000 |
| commit | a666ce5dbb16e68dbeacf45148aee6c24a6a0efb (patch) | |
| tree | 280f62e1fe8b6c7e3c6f52a063982d6333381b4b /src/live_effects | |
| parent | simplify code that puts anchors at start and end of paths in draw context. (diff) | |
| download | inkscape-a666ce5dbb16e68dbeacf45148aee6c24a6a0efb.tar.gz inkscape-a666ce5dbb16e68dbeacf45148aee6c24a6a0efb.zip | |
Add option to either suppress path flash for items with LPE (e.g., spiro splines use this) or display it permanently while the item is selected.
(bzr r5860)
Diffstat (limited to 'src/live_effects')
| -rw-r--r-- | src/live_effects/effect.h | 7 | ||||
| -rw-r--r-- | src/live_effects/lpe-spiro.cpp | 2 | ||||
| -rw-r--r-- | src/live_effects/lpe-spiro.h | 2 | ||||
| -rw-r--r-- | src/live_effects/lpe-tangent_to_curve.h | 2 |
4 files changed, 12 insertions, 1 deletions
diff --git a/src/live_effects/effect.h b/src/live_effects/effect.h index 21d86f80a..f0d0ffdd5 100644 --- a/src/live_effects/effect.h +++ b/src/live_effects/effect.h @@ -77,6 +77,12 @@ enum EffectType { extern const Util::EnumData<EffectType> LPETypeData[INVALID_LPE]; extern const Util::EnumDataConverter<EffectType> LPETypeConverter; +enum LPEPathFlashType { + SUPPRESS_FLASH, + PERMANENT_FLASH, + DEFAULT +}; + class Effect { public: static Effect* New(EffectType lpenr, LivePathEffectObject *lpeobj); @@ -102,6 +108,7 @@ public: virtual void transform_multiply(Geom::Matrix const& postmul, bool set); bool providesKnotholder() { return (kh_entity_vector.size() > 0); } + virtual LPEPathFlashType pathFlashType() { return DEFAULT; } void addHandles(KnotHolder *knotholder, SPDesktop *desktop, SPItem *item); Glib::ustring getName(); diff --git a/src/live_effects/lpe-spiro.cpp b/src/live_effects/lpe-spiro.cpp index e4a0af741..bbf952e19 100644 --- a/src/live_effects/lpe-spiro.cpp +++ b/src/live_effects/lpe-spiro.cpp @@ -88,7 +88,7 @@ void LPESpiro::setup_nodepath(Inkscape::NodePath::Path *np) { sp_nodepath_show_handles(np, false); - sp_nodepath_show_helperpath(np, false); +// sp_nodepath_show_helperpath(np, false); } void diff --git a/src/live_effects/lpe-spiro.h b/src/live_effects/lpe-spiro.h index 292b07fb8..7256665a2 100644 --- a/src/live_effects/lpe-spiro.h +++ b/src/live_effects/lpe-spiro.h @@ -22,6 +22,8 @@ public: LPESpiro(LivePathEffectObject *lpeobject); virtual ~LPESpiro(); + virtual LPEPathFlashType pathFlashType() { return SUPPRESS_FLASH; } + virtual void setup_nodepath(Inkscape::NodePath::Path *np); virtual void doEffect(SPCurve * curve); diff --git a/src/live_effects/lpe-tangent_to_curve.h b/src/live_effects/lpe-tangent_to_curve.h index 8fe54335c..8d9622c67 100644 --- a/src/live_effects/lpe-tangent_to_curve.h +++ b/src/live_effects/lpe-tangent_to_curve.h @@ -38,6 +38,8 @@ public: virtual Geom::Piecewise<Geom::D2<Geom::SBasis> > doEffect_pwd2 (Geom::Piecewise<Geom::D2<Geom::SBasis> > const & pwd2_in); + virtual LPEPathFlashType pathFlashType() { return PERMANENT_FLASH; } + /* the knotholder entity classes must be declared friends */ friend class TtC::KnotHolderEntityLeftEnd; friend class TtC::KnotHolderEntityRightEnd; |
