gui/graph_displayer_canvas.cc
changeset 1601 70d169a8313a
parent 1598 739df601808d
child 1606 dc4ea2010dee
equal deleted inserted replaced
26:a27d2a41e245 27:1740b5921835
    39     xy<double> text_pos=edgesmap[i]->getArrowPos();
    39     xy<double> text_pos=edgesmap[i]->getArrowPos();
    40     text_pos+=(xy<double>(10,10));
    40     text_pos+=(xy<double>(10,10));
    41 
    41 
    42     edgetextmap[i]=new Gnome::Canvas::Text(displayed_graph, text_pos.x, text_pos.y, "");
    42     edgetextmap[i]=new Gnome::Canvas::Text(displayed_graph, text_pos.x, text_pos.y, "");
    43     edgetextmap[i]->property_fill_color().set_value("darkgreen");
    43     edgetextmap[i]->property_fill_color().set_value("darkgreen");
       
    44     edgetextmap[i]->signal_event().connect(sigc::mem_fun(*this, &GraphDisplayerCanvas::edgeMapEditEventHandler), false);
    44   }
    45   }
    45 
    46 
    46   //afterwards nodes come to be drawn
    47   //afterwards nodes come to be drawn
    47 
    48 
    48   NodeIt i(g);
    49   NodeIt i(g);
    67 
    68 
    68     xy<double> text_pos((cm[i].x+node_property_defaults[N_RADIUS]+5),(cm[i].y+node_property_defaults[N_RADIUS]+5));
    69     xy<double> text_pos((cm[i].x+node_property_defaults[N_RADIUS]+5),(cm[i].y+node_property_defaults[N_RADIUS]+5));
    69 
    70 
    70     nodetextmap[i]=new Gnome::Canvas::Text(displayed_graph, text_pos.x, text_pos.y, "");
    71     nodetextmap[i]=new Gnome::Canvas::Text(displayed_graph, text_pos.x, text_pos.y, "");
    71     nodetextmap[i]->property_fill_color().set_value("darkblue");
    72     nodetextmap[i]->property_fill_color().set_value("darkblue");
       
    73     nodetextmap[i]->signal_event().connect(sigc::mem_fun(*this, &GraphDisplayerCanvas::nodeMapEditEventHandler), false);
    72   }
    74   }
    73 
    75 
    74   updateScrollRegion();
    76   updateScrollRegion();
    75 }
    77 }
    76 
    78