summaryrefslogtreecommitdiffstats
path: root/src/text-context.h
diff options
context:
space:
mode:
authorMarkus Engel <markus.engel@tum.de>2013-04-08 22:23:07 +0000
committerMarkus Engel <markus.engel@tum.de>2013-04-08 22:23:07 +0000
commite58cac52b258e64c2cc88b0044bf9cfbaecedce2 (patch)
treef2a5d2992b8658a583e740321b1a4b461aad54a9 /src/text-context.h
parentReactivated independent reference counting in the SPObject tree. (diff)
downloadinkscape-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/text-context.h')
-rw-r--r--src/text-context.h19
1 files changed, 18 insertions, 1 deletions
diff --git a/src/text-context.h b/src/text-context.h
index a33c69e0a..67686cc35 100644
--- a/src/text-context.h
+++ b/src/text-context.h
@@ -31,7 +31,11 @@
struct SPCtrlLine;
-struct SPTextContext : public SPEventContext {
+class CTextContext;
+
+class SPTextContext : public SPEventContext {
+public:
+ CTextContext* ctextcontext;
sigc::connection sel_changed_connection;
sigc::connection sel_modified_connection;
@@ -77,6 +81,19 @@ struct SPTextContextClass {
SPEventContextClass parent_class;
};
+class CTextContext : public CEventContext {
+public:
+ CTextContext(SPTextContext* textcontext);
+
+ virtual void setup();
+ virtual void finish();
+ virtual gint root_handler(GdkEvent* event);
+ virtual gint item_handler(SPItem* item, GdkEvent* event);
+
+private:
+ SPTextContext* sptextcontext;
+};
+
/* Standard Gtk function */
GType sp_text_context_get_type (void);