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/draw-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/draw-context.h')
| -rw-r--r-- | src/draw-context.h | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/src/draw-context.h b/src/draw-context.h index 98309c0cb..4cb1d5cc2 100644 --- a/src/draw-context.h +++ b/src/draw-context.h @@ -35,7 +35,12 @@ namespace Inkscape class Selection; } -struct SPDrawContext : public SPEventContext{ +class CDrawContext; + +class SPDrawContext : public SPEventContext{ +public: + CDrawContext* cdrawcontext; + Inkscape::Selection *selection; SPCanvasItem *grab; @@ -83,6 +88,19 @@ struct SPDrawContext : public SPEventContext{ struct SPDrawContextClass : public SPEventContextClass{}; +class CDrawContext : public CEventContext { +public: + CDrawContext(SPDrawContext* drawcontext); + + virtual void setup(); + virtual void finish(); + virtual void set(Inkscape::Preferences::Entry* val); + virtual gint root_handler(GdkEvent* event); + +protected: + SPDrawContext* spdrawcontext; +}; + GType sp_draw_context_get_type(void) G_GNUC_CONST; /** |
