diff -r d79a71382836 -r 65c1b103443d graph_displayer_canvas.cc --- a/graph_displayer_canvas.cc Mon Sep 25 12:08:35 2006 +0000 +++ b/graph_displayer_canvas.cc Mon Sep 25 15:30:04 2006 +0000 @@ -5,7 +5,7 @@ nodesmap(mainw.mapstorage.graph), edgesmap(mainw.mapstorage.graph), edgetextmap(mainw.mapstorage.graph), nodetextmap(mainw.mapstorage.graph), displayed_graph(*(root()), 0, 0), isbutton(0), active_item(NULL), target_item(NULL), nodemap_to_edit(""), - edgemap_to_edit(""), mytab(mainw) + edgemap_to_edit(""), autoscale(true), radius_min(10), radius_max(40), radius_unit(1), mytab(mainw) { //base event handler is move tool actual_handler=signal_event().connect(sigc::mem_fun(*this, &GraphDisplayerCanvas::moveEventHandler), false); @@ -226,3 +226,20 @@ delete edgetextmap[e]; } } + +void GraphDisplayerCanvas::setNodeView(bool autoscale_p, double min_p, double max_p, double unit_p) +{ + autoscale=autoscale_p; + radius_min=min_p; + radius_max=max_p; + radius_unit=unit_p; + propertyChange(false, N_RADIUS); +} + +void GraphDisplayerCanvas::getNodeView(bool & autoscale_p, double& min_p, double& max_p, double& unit_p) +{ + autoscale_p=autoscale; + min_p=radius_min; + max_p=radius_max; + unit_p=radius_unit; +}