Changeset 28:fa28f1071bd6 in glemon-0.x for graph_displayer_canvas.cc
- Timestamp:
- 06/24/05 20:16:12 (19 years ago)
- Branch:
- gui
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk/gui@1996
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
graph_displayer_canvas.cc
r27 r28 3 3 #include <math.h> 4 4 5 GraphDisplayerCanvas::GraphDisplayerCanvas(Graph & gr, CoordinatesMap & cm, MapStorage & ms ):g(gr),nodesmap(g),edgesmap(g),edgetextmap(g),displayed_graph(*(root()), 0, 0),mapstorage(ms),isbutton(0),active_item(NULL),target_item(NULL)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) 6 6 { 7 7 … … 35 35 36 36 edgetextmap[i]=new Gnome::Canvas::Text(displayed_graph, text_pos.x, text_pos.y, ""); 37 edgetextmap[i]->property_fill_color().set_value(" black");37 edgetextmap[i]->property_fill_color().set_value("darkgreen"); 38 38 } 39 39 … … 57 57 *(nodesmap[i]) << Gnome::Canvas::Properties::fill_color("blue"); 58 58 *(nodesmap[i]) << Gnome::Canvas::Properties::outline_color("black"); 59 //!!!!!!! (nodesmap[i])->signal_event().connect(sigc::bind(sigc::mem_fun(*this, &GraphDisplayerCanvas::event_handler),i)); 59 60 //initializing edge-text as well, to empty string 61 62 xy<double> text_pos((cm[i].x+node_property_defaults[N_RADIUS]+5),(cm[i].y+node_property_defaults[N_RADIUS]+5)); 63 64 nodetextmap[i]=new Gnome::Canvas::Text(displayed_graph, text_pos.x, text_pos.y, ""); 65 nodetextmap[i]->property_fill_color().set_value("darkblue"); 60 66 } 61 67
Note: See TracChangeset
for help on using the changeset viewer.