# HG changeset patch # User hegyi # Date 1136555929 0 # Node ID f40cdc2057c26670d634aed8c70171eb8a8b171a # Parent 0d6da6e6a77587b021e99f008b0ba705a460f5bc Result of KruskalGUIAlgo is refreshed if displayed, but no more setin a forced way. diff -r 0d6da6e6a775 -r f40cdc2057c2 gui/kruskalbox.cc --- a/gui/kruskalbox.cc Fri Jan 06 10:42:58 2006 +0000 +++ b/gui/kruskalbox.cc Fri Jan 06 13:58:49 2006 +0000 @@ -32,11 +32,13 @@ std::ostringstream o; o << "Result: " << res; resultlabel.set_text(o.str()); + + mapstorage->mapChanged(true, (edgemapcbts[OUTPUT])->get_active_text()); + // mapstorage->changeActiveMap(true, E_COLOR, + // (edgemapcbts[OUTPUT])->get_active_text()); + // mapstorage->changeActiveMap(true, E_TEXT, + // (edgemapcbts[INPUT])->get_active_text()); - mapstorage->changeActiveMap(true, E_COLOR, - (edgemapcbts[OUTPUT])->get_active_text()); - mapstorage->changeActiveMap(true, E_TEXT, - (edgemapcbts[INPUT])->get_active_text()); } void KruskalBox::build_box() diff -r 0d6da6e6a775 -r f40cdc2057c2 gui/mapstorage.cc --- a/gui/mapstorage.cc Fri Jan 06 10:42:58 2006 +0000 +++ b/gui/mapstorage.cc Fri Jan 06 13:58:49 2006 +0000 @@ -438,3 +438,27 @@ { arrow_pos_read_ok = true; } + +void MapStorage::mapChanged(bool itisedge, std::string mapname) +{ + if(itisedge) + { + for(int i=0;i * >::iterator endOfEdgeMaps(){return edgemap_storage.end();}; + void mapChanged(bool, std::string); + int readFromFile(const std::string &); void writeToFile(const std::string &);