COIN-OR::LEMON - Graph Library

Changeset 108:bf355fd6563e in glemon-0.x for algowin.cc


Ignore:
Timestamp:
01/05/06 13:30:09 (14 years ago)
Author:
Hegyi Péter
Branch:
gui
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk/gui@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
  • algowin.cc

    r106 r108  
    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.