gui/graph_displayer_canvas.cc
changeset 1562 73c3f5d0079c
parent 1550 4dcbb4ab1d7a
child 1579 ed7da82bbecf
     1.1 --- a/gui/graph_displayer_canvas.cc	Fri Jul 15 16:12:35 2005 +0000
     1.2 +++ b/gui/graph_displayer_canvas.cc	Fri Jul 15 21:17:18 2005 +0000
     1.3 @@ -5,12 +5,16 @@
     1.4  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.5  {
     1.6    
     1.7 +  active_node=INVALID;
     1.8 +  active_edge=INVALID;
     1.9 +
    1.10 +  //setting event handler for the editor widget
    1.11 +  entrywidget.signal_event().connect(sigc::mem_fun(*this, &GraphDisplayerCanvas::entryWidgetChangeHandler), false);
    1.12 +
    1.13 +  //base event handler is move tool
    1.14    actual_handler=signal_event().connect(sigc::mem_fun(*this, &GraphDisplayerCanvas::moveEventHandler), false);
    1.15    actual_tool=CREATE_NODE;
    1.16  
    1.17 -  active_node=INVALID;
    1.18 -  active_edge=INVALID;
    1.19 -
    1.20    //set_center_scroll_region(true);
    1.21  
    1.22    //first edges are drawn, to hide joining with nodes later