summaryrefslogtreecommitdiffstats
path: root/src/connector-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/connector-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/connector-context.h')
-rw-r--r--src/connector-context.h21
1 files changed, 20 insertions, 1 deletions
diff --git a/src/connector-context.h b/src/connector-context.h
index 597feac38..74f84540f 100644
--- a/src/connector-context.h
+++ b/src/connector-context.h
@@ -45,7 +45,12 @@ enum {
typedef std::map<SPKnot *, int> SPKnotList;
-struct SPConnectorContext : public SPEventContext {
+class CConnectorContext;
+
+class SPConnectorContext : public SPEventContext {
+public:
+ CConnectorContext* cconnectorcontext;
+
Inkscape::Selection *selection;
Geom::Point p[5];
@@ -96,6 +101,20 @@ struct SPConnectorContext : public SPEventContext {
struct SPConnectorContextClass : public SPEventContextClass { };
+class CConnectorContext : public CEventContext {
+public:
+ CConnectorContext(SPConnectorContext* connectorcontext);
+
+ virtual void setup();
+ virtual void finish();
+ virtual void set(Inkscape::Preferences::Entry* val);
+ virtual gint root_handler(GdkEvent* event);
+ virtual gint item_handler(SPItem* item, GdkEvent* event);
+
+private:
+ SPConnectorContext* spconnectorcontext;
+};
+
GType sp_connector_context_get_type();
void cc_selection_set_avoid(bool const set_ignore);