COIN-OR::LEMON - Graph Library

Changeset 1878:409a31271efd in lemon-0.x for gui/algowin.cc


Ignore:
Timestamp:
01/05/06 13:30:09 (18 years ago)
Author:
Hegyi Péter
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2453
Message:

Several changes. \n If new map is added to mapstorage it emits signal with the name of the new map. This was important, because from now on not only tha mapwin should be updated. \n Furthermore algobox gets a pointer to mapstorage instead of only the mapnames from it. This is important because without it it would be complicated to pass all of the required maps to algobox.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gui/algowin.cc

    r1876 r1878  
    2121}
    2222
    23 AlgoWin::AlgoWin(int algoid, std::vector<std::string> tabnames, std::vector<std::string> nodemapnames,std::vector<std::string> edgemapnames)
     23AlgoWin::AlgoWin(int algoid, std::vector<std::string> tabnames)
    2424{
    2525  signal_key_press_event().connect(sigc::mem_fun(*this, &AlgoWin::closeIfEscapeIsPressed));
     
    3333    {
    3434    case 0:
    35       ab=new AlgoBox(tabnames, nodemapnames, edgemapnames);
     35      ab=new AlgoBox(tabnames);
    3636      set_title("Algo Win Demo");
    3737      break;
    3838    case 1:
    39       ab=new KruskalBox(tabnames, nodemapnames, edgemapnames);
     39      ab=new KruskalBox(tabnames);
    4040      set_title("Kruskal Algorithm");
    4141      break;
     
    7272}
    7373
    74 void AlgoWin::update_maplist(std::vector<std::string> nodemapnames, std::vector<std::string> edgemapnames)
     74void AlgoWin::update_maplist(void * mapstorage)
    7575{
    76   ab->update_maplist(nodemapnames, edgemapnames);
     76  ab->update_maplist(mapstorage);
    7777}
    7878
Note: See TracChangeset for help on using the changeset viewer.