COIN-OR::LEMON - Graph Library

Changeset 1881:f40cdc2057c2 in lemon-0.x


Ignore:
Timestamp:
01/06/06 14:58:49 (14 years ago)
Author:
Hegyi Péter
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2456
Message:

Result of KruskalGUIAlgo is refreshed if displayed, but no more setin a forced way.

Location:
gui
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • gui/kruskalbox.cc

    r1880 r1881  
    3333  o << "Result: " << res;
    3434  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());
    3541 
    36   mapstorage->changeActiveMap(true, E_COLOR,
    37                               (edgemapcbts[OUTPUT])->get_active_text());
    38   mapstorage->changeActiveMap(true, E_TEXT,
    39                               (edgemapcbts[INPUT])->get_active_text());
    4042}
    4143   
  • gui/mapstorage.cc

    r1878 r1881  
    439439  arrow_pos_read_ok = true;
    440440}
     441
     442void 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  
    134134  std::map< std::string,Graph::EdgeMap<double> * >::iterator endOfEdgeMaps(){return edgemap_storage.end();};
    135135
     136  void mapChanged(bool, std::string);
     137
    136138  int readFromFile(const std::string &);
    137139  void writeToFile(const std::string &);
Note: See TracChangeset for help on using the changeset viewer.