166 (mytab.mapstorage).coords[(mytab.mapstorage).graph.source(i)].y)); |
166 (mytab.mapstorage).coords[(mytab.mapstorage).graph.source(i)].y)); |
167 coos.push_back(Gnome::Art::Point( |
167 coos.push_back(Gnome::Art::Point( |
168 (mytab.mapstorage).coords[(mytab.mapstorage).graph.target(i)].x, |
168 (mytab.mapstorage).coords[(mytab.mapstorage).graph.target(i)].x, |
169 (mytab.mapstorage).coords[(mytab.mapstorage).graph.target(i)].y)); |
169 (mytab.mapstorage).coords[(mytab.mapstorage).graph.target(i)].y)); |
170 |
170 |
171 edgesmap[i]=new BrokenEdge(displayed_graph, coos, *this); |
171 edgesmap[i]=new BrokenEdge(displayed_graph, i, *this); |
172 *(edgesmap[i]) << Gnome::Canvas::Properties::fill_color("green"); |
172 *(edgesmap[i]) << Gnome::Canvas::Properties::fill_color("green"); |
173 edgesmap[i]->property_width_units().set_value(10); |
173 edgesmap[i]->property_width_units().set_value(10); |
174 edgesmap[i]->lower_to_bottom(); |
174 edgesmap[i]->lower_to_bottom(); |
175 |
175 |
176 //initializing edge-text as well, to empty string |
176 //initializing edge-text as well, to empty string |
177 |
177 |
178 xy<double> text_pos=edgesmap[i]->getArrowPos(); |
178 XY text_pos=mytab.mapstorage.arrow_pos[i]; |
179 text_pos+=(xy<double>(10,10)); |
179 text_pos+=(XY(10,10)); |
180 |
180 |
181 edgetextmap[i]=new Gnome::Canvas::Text(displayed_graph, text_pos.x, text_pos.y, ""); |
181 edgetextmap[i]=new Gnome::Canvas::Text(displayed_graph, text_pos.x, text_pos.y, ""); |
182 edgetextmap[i]->property_fill_color().set_value("darkgreen"); |
182 edgetextmap[i]->property_fill_color().set_value("darkgreen"); |
183 edgetextmap[i]->signal_event().connect(sigc::mem_fun(*this, &GraphDisplayerCanvas::edgeMapEditEventHandler), false); |
183 edgetextmap[i]->signal_event().connect(sigc::mem_fun(*this, &GraphDisplayerCanvas::edgeMapEditEventHandler), false); |
184 edgetextmap[i]->raise_to_top(); |
184 edgetextmap[i]->raise_to_top(); |