diff options
| author | Markus Engel <markus.engel@tum.de> | 2013-04-09 20:12:07 +0000 |
|---|---|---|
| committer | Markus Engel <markus.engel@tum.de> | 2013-04-09 20:12:07 +0000 |
| commit | 1d8f1753cd8cab38d19fcc26a4ad70ba2e794ac8 (patch) | |
| tree | b010ac32dcfd9923c2ec38dff3b70955242dfa70 /src/spray-context.h | |
| parent | Started conversion of SPEventContext tree; added virtual pads to all classes. (diff) | |
| download | inkscape-1d8f1753cd8cab38d19fcc26a4ad70ba2e794ac8.tar.gz inkscape-1d8f1753cd8cab38d19fcc26a4ad70ba2e794ac8.zip | |
Added constructors to EventContext tree / some missing virtual pads.
(bzr r11608.1.90)
Diffstat (limited to 'src/spray-context.h')
| -rw-r--r-- | src/spray-context.h | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/src/spray-context.h b/src/spray-context.h index 781bbcce8..79175ccc2 100644 --- a/src/spray-context.h +++ b/src/spray-context.h @@ -49,9 +49,15 @@ enum { SPRAY_OPTION, }; -struct SPSprayContext +class CSprayContext; + +class SPSprayContext : public SPEventContext { - SPEventContext event_context; +public: + SPSprayContext(); + CSprayContext* cspraycontext; + + //SPEventContext event_context; //Inkscape::UI::Dialog::Dialog *dialog_option;//Attribut de type SprayOptionClass, localisé dans scr/ui/dialog /* extended input data */ gdouble pressure; @@ -94,6 +100,18 @@ struct SPSprayContextClass SPEventContextClass parent_class; }; +class CSprayContext : public CEventContext { +public: + CSprayContext(SPSprayContext* spraycontext); + + virtual void setup(); + virtual void set(Inkscape::Preferences::Entry* val); + virtual gint root_handler(GdkEvent* event); + +private: + SPSprayContext* spspraycontext; +}; + GType sp_spray_context_get_type(void); |
