1.1 --- a/gui/graph_displayer_canvas.cc Wed Jul 20 22:36:37 2005 +0000
1.2 +++ b/gui/graph_displayer_canvas.cc Thu Jul 21 19:28:29 2005 +0000
1.3 @@ -2,18 +2,20 @@
1.4 #include <broken_edge.h>
1.5 #include <math.h>
1.6
1.7 -GraphDisplayerCanvas::GraphDisplayerCanvas(Graph & gr, CoordinatesMap & cm, MapStorage & ms, MapWin * mw):g(gr),nodesmap(g),edgesmap(g),edgetextmap(g),nodetextmap(g),displayed_graph(*(root()), 0, 0),canvasentrywidget(NULL),mapstorage(ms),isbutton(0),active_item(NULL),target_item(NULL),mapwin(mw)
1.8 +GraphDisplayerCanvas::GraphDisplayerCanvas(Graph & gr, CoordinatesMap & cm, MapStorage & ms, MapWin * mw):g(gr),nodesmap(g),edgesmap(g),edgetextmap(g),nodetextmap(g),displayed_graph(*(root()), 0, 0),canvasentrywidget(NULL),mapstorage(ms),isbutton(0),active_item(NULL),target_item(NULL),edgemap_to_edit(""),nodemap_to_edit(""),mapwin(mw)
1.9 {
1.10
1.11 +
1.12 active_node=INVALID;
1.13 active_edge=INVALID;
1.14 + forming_edge=INVALID;
1.15
1.16 //setting event handler for the editor widget
1.17 entrywidget.signal_event().connect(sigc::mem_fun(*this, &GraphDisplayerCanvas::entryWidgetChangeHandler), false);
1.18
1.19 //base event handler is move tool
1.20 actual_handler=signal_event().connect(sigc::mem_fun(*this, &GraphDisplayerCanvas::moveEventHandler), false);
1.21 - actual_tool=CREATE_NODE;
1.22 + actual_tool=MOVE;
1.23
1.24 //set_center_scroll_region(true);
1.25