summaryrefslogtreecommitdiffstats
path: root/src/live_effects/effect.h
diff options
context:
space:
mode:
authorMaximilian Albert <maximilian.albert@gmail.com>2008-06-12 13:23:17 +0000
committercilix42 <cilix42@users.sourceforge.net>2008-06-12 13:23:17 +0000
commite2ebbb4f9c51fd4d4528899b761afe74f6f4dd42 (patch)
treecf08b1b3a2d345c346a14a2f203dd0e64cc2f174 /src/live_effects/effect.h
parentPen context can now wait for a specified number of clicks and finish the path... (diff)
downloadinkscape-e2ebbb4f9c51fd4d4528899b761afe74f6f4dd42.tar.gz
inkscape-e2ebbb4f9c51fd4d4528899b761afe74f6f4dd42.zip
Infrastructure in class LivePathEffect::Effect to put Inkscape into 'wait for parameter path' mode; make LPEMirrorReflect use this to let the user specify the mirroring line
(bzr r5902)
Diffstat (limited to 'src/live_effects/effect.h')
-rw-r--r--src/live_effects/effect.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/live_effects/effect.h b/src/live_effects/effect.h
index 665509fd1..f1241c54b 100644
--- a/src/live_effects/effect.h
+++ b/src/live_effects/effect.h
@@ -95,10 +95,16 @@ public:
EffectType effectType ();
virtual void doOnApply (SPLPEItem *lpeitem);
-
virtual void doBeforeEffect (SPLPEItem *lpeitem);
+
void writeParamsToSVG();
+ virtual void acceptParamPath (SPPath *param_path);
+ virtual int acceptsNumParams() { return 0; }
+ void doAcceptPathPreparations(SPLPEItem *lpeitem);
+
+ inline bool pathParamAccepted() { return done_pathparam_set; }
+
virtual void doEffect (SPCurve * curve);
virtual Gtk::Widget * newWidget(Gtk::Tooltips * tooltips);
@@ -148,6 +154,7 @@ protected:
std::vector<std::pair<KnotHolderEntity*, const char*> > kh_entity_vector;
int oncanvasedit_it;
BoolParam is_visible;
+ bool done_pathparam_set;
Inkscape::UI::Widget::Registry wr;