diff options
| author | Markus Engel <markus.engel@tum.de> | 2013-04-08 22:23:07 +0000 |
|---|---|---|
| committer | Markus Engel <markus.engel@tum.de> | 2013-04-08 22:23:07 +0000 |
| commit | e58cac52b258e64c2cc88b0044bf9cfbaecedce2 (patch) | |
| tree | f2a5d2992b8658a583e740321b1a4b461aad54a9 /src/lpe-tool-context.h | |
| parent | Reactivated independent reference counting in the SPObject tree. (diff) | |
| download | inkscape-e58cac52b258e64c2cc88b0044bf9cfbaecedce2.tar.gz inkscape-e58cac52b258e64c2cc88b0044bf9cfbaecedce2.zip | |
Started conversion of SPEventContext tree; added virtual pads to all classes.
(bzr r11608.1.89)
Diffstat (limited to 'src/lpe-tool-context.h')
| -rw-r--r-- | src/lpe-tool-context.h | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/src/lpe-tool-context.h b/src/lpe-tool-context.h index fb3a5d4e2..0035fd424 100644 --- a/src/lpe-tool-context.h +++ b/src/lpe-tool-context.h @@ -45,7 +45,12 @@ class Selection; class ShapeEditor; -struct SPLPEToolContext : public SPPenContext { +class CLPEToolContext; + +class SPLPEToolContext : public SPPenContext { +public: + CLPEToolContext* clpetoolcontext; + ShapeEditor* shape_editor; SPCanvasItem *canvas_bbox; Inkscape::LivePathEffect::EffectType mode; @@ -60,6 +65,19 @@ struct SPLPEToolContext : public SPPenContext { struct SPLPEToolContextClass : public SPEventContextClass{}; +class CLPEToolContext : public CPenContext { +public: + CLPEToolContext(SPLPEToolContext* lpetoolcontext); + + virtual void setup(); + virtual void set(Inkscape::Preferences::Entry* val); + virtual gint root_handler(GdkEvent* event); + virtual gint item_handler(SPItem* item, GdkEvent* event); + +private: + SPLPEToolContext* splpetoolcontext; +}; + int lpetool_mode_to_index(Inkscape::LivePathEffect::EffectType const type); int lpetool_item_has_construction(SPLPEToolContext *lc, SPItem *item); bool lpetool_try_construction(SPLPEToolContext *lc, Inkscape::LivePathEffect::EffectType const type); |
