1.1 --- a/graph_displayer_canvas.h Mon Jun 06 17:01:12 2005 +0000
1.2 +++ b/graph_displayer_canvas.h Fri Jun 10 11:58:03 2005 +0000
1.3 @@ -40,6 +40,9 @@
1.4 ///Sets the scroll region of the convas to the bounding box of the graph.
1.5 void updateScrollRegion();
1.6
1.7 + ///This function changes the tool in the graph-editor's hand
1.8 + void changeEditorialTool(int);
1.9 +
1.10 protected:
1.11
1.12 //maximizing, minimizing, restoring window, etc.
1.13 @@ -52,6 +55,18 @@
1.14 ///of the canvas
1.15 bool event_handler(GdkEvent* e, Node n);
1.16
1.17 + ///actual event handler
1.18 + ///
1.19 + ///Actual event handler should be stored, to be able to disconnect it and later reconnect it.
1.20 + sigc::connection actual_handler;
1.21 +
1.22 + ///event handler for the case when move-tool is active
1.23 + bool move_event_handler(GdkEvent*);
1.24 + ///event handler for the case when create_node-tool is active
1.25 + bool create_node_event_handler(GdkEvent*);
1.26 + ///event handler for the case when create_edge-tool is active
1.27 + bool create_edge_event_handler(GdkEvent*);
1.28 +
1.29 ///The graph, on which we work
1.30 Graph g;
1.31
1.32 @@ -82,6 +97,7 @@
1.33 ///1. we cannot query the item at he cursor as fast as it could not cause a Segmentation Fault
1.34 ///2. we would like to handle only ony item per movement, therefore quering it is not a working solution
1.35 Gnome::Canvas::Item * active_item;
1.36 + Graph::NodeIt active_node;
1.37
1.38 static const int zoom_step = 5;
1.39 };