Changeset 1881:f40cdc2057c2 in lemon-0.x
- Timestamp:
- 01/06/06 14:58:49 (19 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2456
- Location:
- gui
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
gui/kruskalbox.cc
r1880 r1881 33 33 o << "Result: " << res; 34 34 resultlabel.set_text(o.str()); 35 36 mapstorage->mapChanged(true, (edgemapcbts[OUTPUT])->get_active_text()); 37 // mapstorage->changeActiveMap(true, E_COLOR, 38 // (edgemapcbts[OUTPUT])->get_active_text()); 39 // mapstorage->changeActiveMap(true, E_TEXT, 40 // (edgemapcbts[INPUT])->get_active_text()); 35 41 36 mapstorage->changeActiveMap(true, E_COLOR,37 (edgemapcbts[OUTPUT])->get_active_text());38 mapstorage->changeActiveMap(true, E_TEXT,39 (edgemapcbts[INPUT])->get_active_text());40 42 } 41 43 -
gui/mapstorage.cc
r1878 r1881 439 439 arrow_pos_read_ok = true; 440 440 } 441 442 void MapStorage::mapChanged(bool itisedge, std::string mapname) 443 { 444 if(itisedge) 445 { 446 for(int i=0;i<EDGE_PROPERTY_NUM;i++) 447 { 448 if(active_edgemaps[i]==mapname) 449 { 450 signal_prop.emit(itisedge, i); 451 } 452 } 453 } 454 else 455 { 456 for(int i=0;i<NODE_PROPERTY_NUM;i++) 457 { 458 if(active_nodemaps[i]==mapname) 459 { 460 signal_prop.emit(itisedge, i); 461 } 462 } 463 } 464 } -
gui/mapstorage.h
r1878 r1881 134 134 std::map< std::string,Graph::EdgeMap<double> * >::iterator endOfEdgeMaps(){return edgemap_storage.end();}; 135 135 136 void mapChanged(bool, std::string); 137 136 138 int readFromFile(const std::string &); 137 139 void writeToFile(const std::string &);
Note: See TracChangeset
for help on using the changeset viewer.