diff options
| author | Maximilian Albert <maximilian.albert@gmail.com> | 2008-06-16 16:16:19 +0000 |
|---|---|---|
| committer | cilix42 <cilix42@users.sourceforge.net> | 2008-06-16 16:16:19 +0000 |
| commit | 251326539ff9769c8b7a09dbd6b89809ffa1f93a (patch) | |
| tree | 03ad83ead8ea31087851f5c1fadfcc177f300eb5 | |
| parent | copy complete LPE stack to clipboard instead of only the current active lpe (diff) | |
| download | inkscape-251326539ff9769c8b7a09dbd6b89809ffa1f93a.tar.gz inkscape-251326539ff9769c8b7a09dbd6b89809ffa1f93a.zip | |
Separate function to put pen context into 'wait for LPE mouse clicks' mode
(bzr r5958)
| -rw-r--r-- | src/pen-context.cpp | 9 | ||||
| -rw-r--r-- | src/pen-context.h | 2 |
2 files changed, 11 insertions, 0 deletions
diff --git a/src/pen-context.cpp b/src/pen-context.cpp index 56594bb6d..1a9f3e39f 100644 --- a/src/pen-context.cpp +++ b/src/pen-context.cpp @@ -1293,6 +1293,15 @@ pen_enable_events(SPPenContext *const pc) { pc->events_disabled--; } +void +sp_pen_context_wait_for_LPE_mouse_clicks(SPPenContext *pc, Inkscape::LivePathEffect::EffectType effect_type, + unsigned int num_clicks, bool use_polylines) +{ + pc->expecting_clicks_for_LPE = num_clicks; + pc->polylines_only = use_polylines; + pc->waiting_LPE_type = effect_type; +} + /* Local Variables: mode:c++ diff --git a/src/pen-context.h b/src/pen-context.h index 68a2665e0..7c189934c 100644 --- a/src/pen-context.h +++ b/src/pen-context.h @@ -60,6 +60,8 @@ inline bool sp_pen_context_has_waiting_LPE(SPPenContext *pc) { pc->waiting_LPE_type != Inkscape::LivePathEffect::INVALID_LPE); } +void sp_pen_context_wait_for_LPE_mouse_clicks(SPPenContext *pc, Inkscape::LivePathEffect::EffectType effect_type, + unsigned int num_clicks, bool use_polylines = true); #endif /* !SEEN_PEN_CONTEXT_H */ |
