gui/graph_displayer_canvas.cc
changeset 1593 a8a007f1c01c
parent 1581 9bb83c7f479b
child 1598 739df601808d
equal deleted inserted replaced
24:27b6a77c8248 25:a15a53a58b9f
     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),canvasentrywidget(NULL),mapstorage(ms),isbutton(0),active_item(NULL),target_item(NULL),nodemap_to_edit(""),edgemap_to_edit(""),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),canvasentrywidget(NULL),mapstorage(ms),isbutton(0),active_item(NULL),target_item(NULL),nodemap_to_edit(""),edgemap_to_edit(""),mapwin(mw)
     6 {
     6 {
     7   
     7   
     8   
     8   //Initializing values.
     9   active_node=INVALID;
     9   active_node=INVALID;
    10   active_edge=INVALID;
    10   active_edge=INVALID;
    11   forming_edge=INVALID;
    11   forming_edge=INVALID;
    12 
    12 
    13   //setting event handler for the editor widget
    13   //setting event handler for the editor widget