graph_displayer_canvas.cc
branchgui
changeset 31 66e85f44a66f
parent 30 f70bbee5350a
child 32 1f45545f124c
equal deleted inserted replaced
19:4ed2302ef53f 20:996c5318a5ba
     3 #include <math.h>
     3 #include <math.h>
     4 
     4 
     5 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),mapstorage(ms),isbutton(0),active_item(NULL),target_item(NULL),mapwin(mw)
     5 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),mapstorage(ms),isbutton(0),active_item(NULL),target_item(NULL),mapwin(mw)
     6 {
     6 {
     7   
     7   
     8   actual_handler=signal_event().connect(sigc::mem_fun(*this, &GraphDisplayerCanvas::createNodeEventHandler), false);
     8   actual_handler=signal_event().connect(sigc::mem_fun(*this, &GraphDisplayerCanvas::moveEventHandler), false);
     9   actual_tool=CREATE_NODE;
     9   actual_tool=CREATE_NODE;
    10 
    10 
    11   active_node=INVALID;
    11   active_node=INVALID;
    12   active_edge=INVALID;
    12   active_edge=INVALID;
    13 
    13