Changeset 1651:e40c41eae31f in lemon-0.x
- Timestamp:
- 08/26/05 13:37:41 (19 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2164
- Location:
- gui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
gui/all_include.h
r1650 r1651 43 43 typedef Graph::Edge Edge; 44 44 typedef Graph::EdgeIt EdgeIt; 45 typedef Graph::InEdgeIt InEdgeIt; 46 typedef Graph::OutEdgeIt OutEdgeIt; 45 47 typedef Graph::NodeIt NodeIt; 46 48 -
gui/graph_displayer_canvas-event.cc
r1648 r1651 142 142 clicked_y=new_y; 143 143 144 //all the edges connected to the moved point has to be redrawn 145 EdgeIt ei; 146 147 mapstorage.graph.firstOut(ei,active_node); 148 149 for(;ei!=INVALID;mapstorage.graph.nextOut(ei)) 144 145 for(OutEdgeIt ei(mapstorage.graph,active_node);ei!=INVALID;++ei) 150 146 { 151 147 Gnome::Canvas::Points coos; … … 174 170 } 175 171 176 mapstorage.graph.firstIn(ei,active_node); 177 for(;ei!=INVALID;mapstorage.graph.nextIn(ei)) 172 for(InEdgeIt ei(mapstorage.graph,active_node);ei!=INVALID;++ei) 178 173 { 179 174 Gnome::Canvas::Points coos; … … 484 479 mapstorage.modified = true; 485 480 486 //collecting edges to delete487 EdgeIt e;488 481 std::set<Graph::Edge> edges_to_delete; 489 482 490 mapstorage.graph.firstOut(e,active_node); 491 for(;e!=INVALID;mapstorage.graph.nextOut(e)) 483 for(OutEdgeIt e(mapstorage.graph,active_node);e!=INVALID;++e) 492 484 { 493 485 edges_to_delete.insert(e); 494 486 } 495 496 mapstorage.graph.firstIn(e,active_node); 497 for(;e!=INVALID;mapstorage.graph.nextIn(e)) 487 488 for(InEdgeIt e(mapstorage.graph,active_node);e!=INVALID;++e) 498 489 { 499 490 edges_to_delete.insert(e); 500 491 } 501 492 502 493 //deleting collected edges 503 for(std::set<Graph::Edge>::iterator edge_set_it=edges_to_delete.begin();edge_set_it!=edges_to_delete.end();edge_set_it++) 494 for(std::set<Graph::Edge>::iterator 495 edge_set_it=edges_to_delete.begin(); 496 edge_set_it!=edges_to_delete.end(); 497 ++edge_set_it) 504 498 { 505 499 deleteItem(*edge_set_it);
Note: See TracChangeset
for help on using the changeset viewer.