summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: bb78cf2)
raw | patch | inline | side by side (parent: bb78cf2)
author | cilix42 <cilix42@users.sourceforge.net> | |
Mon, 16 Jun 2008 15:46:06 +0000 (15:46 +0000) | ||
committer | cilix42 <cilix42@users.sourceforge.net> | |
Mon, 16 Jun 2008 15:46:06 +0000 (15:46 +0000) |
index 9bcbf51ab67c009a327580f846d41dbd3ccff199..799c4cf755260ba09a9f91b510e2ab886354d190 100644 (file)
enum LPEPathFlashType {
SUPPRESS_FLASH,
- PERMANENT_FLASH,
+// PERMANENT_FLASH,
DEFAULT
};
// TODO: providesKnotholder() is currently used as an indicator of whether a nodepath is
// created for an item or not. When we allow both at the same time, this needs rethinking!
bool providesKnotholder() { return (kh_entity_vector.size() > 0); }
+ // TODO: in view of providesOwnFlashPaths() below, this is somewhat redundant
+ // (but spiro lpe still needs it!)
virtual LPEPathFlashType pathFlashType() { return DEFAULT; }
void addHandles(KnotHolder *knotholder, SPDesktop *desktop, SPItem *item);
index b4f7029a0787e65c5a201c46db83a84047681da8..61745a4395b3633d80556568f8c0b995ced7aa94 100644 (file)
virtual void acceptParamPath (SPPath *param_path);
virtual int acceptsNumParams() { return 2; }
- virtual LPEPathFlashType pathFlashType() { return SUPPRESS_FLASH; }
-
virtual std::vector<Geom::Path> doEffect_path (std::vector<Geom::Path> const & path_in);
private:
index 464b692bfdc97fa94f49083f9930f1db0b47f768..8fe54335cbd0646971cd7c713280de5c4998afb3 100644 (file)
virtual Geom::Piecewise<Geom::D2<Geom::SBasis> >
doEffect_pwd2 (Geom::Piecewise<Geom::D2<Geom::SBasis> > const & pwd2_in);
- virtual LPEPathFlashType pathFlashType() { return SUPPRESS_FLASH; }
-
/* the knotholder entity classes must be declared friends */
friend class TtC::KnotHolderEntityLeftEnd;
friend class TtC::KnotHolderEntityRightEnd;
diff --git a/src/node-context.cpp b/src/node-context.cpp
index b85e08b689c06163f090a82262b37405d539a32e..9a4bff88e361f17f8b2321fa6d25eaaa4bad56b4 100644 (file)
--- a/src/node-context.cpp
+++ b/src/node-context.cpp
@@ -236,15 +236,11 @@ sp_node_context_item_handler(SPEventContext *event_context, SPItem *item, GdkEve
guint timeout = prefs_get_int_attribute("tools.nodes", "pathflash_timeout", 500);
if (SP_IS_LPE_ITEM(item)) {
Inkscape::LivePathEffect::Effect *lpe = sp_lpe_item_get_current_lpe(SP_LPE_ITEM(item));
- if (lpe) {
- if (lpe->pathFlashType() == Inkscape::LivePathEffect::SUPPRESS_FLASH) {
- // suppressed and permanent flashes for LPE items are handled in
- // sp_node_context_selection_changed()
- return ret;
- }
- if (lpe->pathFlashType() == Inkscape::LivePathEffect::PERMANENT_FLASH) {
- timeout = 0;
- }
+ if (lpe && (lpe->providesOwnFlashPaths() ||
+ lpe->pathFlashType() == Inkscape::LivePathEffect::SUPPRESS_FLASH)) {
+ // path should be suppressed or permanent; this is handled in
+ // sp_node_context_selection_changed()
+ return ret;
}
}
sp_node_context_flash_path(event_context, item, timeout);