graph_displayer_canvas.cc
branchgui
changeset 42 f1b70894b953
parent 36 7a8c41aa3c29
child 47 9a0e6e92d06c
equal deleted inserted replaced
24:3a6fa7397348 25:ed53d632dc24
     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