changeset 1559 | 030f1015f898 |
parent 1525 | 6d94de269ab1 |
child 1562 | 73c3f5d0079c |
20:498daedd6bca | 21:702d8a8f0a70 |
---|---|
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); |