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/flood-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/flood-context.h')
| -rw-r--r-- | src/flood-context.h | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/src/flood-context.h b/src/flood-context.h index 3e81cd01e..fa22027f4 100644 --- a/src/flood-context.h +++ b/src/flood-context.h @@ -29,7 +29,12 @@ #define FLOOD_COLOR_CHANNEL_B 4 #define FLOOD_COLOR_CHANNEL_A 8 -struct SPFloodContext : public SPEventContext { +class CFloodContext; + +class SPFloodContext : public SPEventContext { +public: + CFloodContext* cfloodcontext; + SPItem *item; sigc::connection sel_changed_connection; @@ -41,6 +46,18 @@ struct SPFloodContextClass { SPEventContextClass parent_class; }; +class CFloodContext : public CEventContext { +public: + CFloodContext(SPFloodContext* floodcontext); + + virtual void setup(); + virtual gint root_handler(GdkEvent* event); + virtual gint item_handler(SPItem* item, GdkEvent* event); + +private: + SPFloodContext* spfloodcontext; +}; + /* Standard Gtk function */ GType sp_flood_context_get_type (void); |
