branch | gui |
changeset 33 | 8dc87bc15ec5 |
parent 31 | 66e85f44a66f |
child 34 | 2cb1fc37f742 |
20:996c5318a5ba | 21:eae7744b2d47 |
---|---|
1 #include <graph_displayer_canvas.h> |
1 #include <graph_displayer_canvas.h> |
2 #include <broken_edge.h> |
2 #include <broken_edge.h> |
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),canvasentrywidget(NULL),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::moveEventHandler), 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 |
68 updateScrollRegion(); |
68 updateScrollRegion(); |
69 } |
69 } |
70 |
70 |
71 GraphDisplayerCanvas::~GraphDisplayerCanvas() |
71 GraphDisplayerCanvas::~GraphDisplayerCanvas() |
72 { |
72 { |
73 if(canvasentrywidget) |
|
74 { |
|
75 delete(canvasentrywidget); |
|
76 } |
|
73 |
77 |
74 //writing out the end state of the graph |
78 //writing out the end state of the graph |
75 //\todo all the maps has to be write out! |
79 //\todo all the maps has to be write out! |
76 |
80 |
77 Graph::NodeMap <int> id(g); |
81 Graph::NodeMap <int> id(g); |