From e58cac52b258e64c2cc88b0044bf9cfbaecedce2 Mon Sep 17 00:00:00 2001 From: Markus Engel Date: Tue, 9 Apr 2013 00:23:07 +0200 Subject: Started conversion of SPEventContext tree; added virtual pads to all classes. (bzr r11608.1.89) --- src/flood-context.h | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'src/flood-context.h') 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); -- cgit v1.2.3