algobox.cc
branchgui
changeset 109 9f8dc346ac6e
parent 108 bf355fd6563e
child 114 0ace7edbb06f
equal deleted inserted replaced
1:947c0e7db848 2:9727f248ff73
    57 {
    57 {
    58   update_cbt(tl, tabcbt);
    58   update_cbt(tl, tabcbt);
    59   emit_tab_change();
    59   emit_tab_change();
    60 }
    60 }
    61 
    61 
    62 void AlgoBox::update_maplist( void * ms)
    62 void AlgoBox::update_maplist(MapStorage * ms)
    63 {
    63 {
    64   mapstorage=(MapStorage *)ms;
    64   mapstorage=ms;
    65   std::vector<std::string> nml;
    65   std::vector<std::string> nml;
    66   std::vector<std::string> eml;
    66   std::vector<std::string> eml;
    67   if(mapstorage!=NULL)
    67   if(mapstorage!=NULL)
    68     {
    68     {
    69       mapstorage->signal_node_map_ch().connect(sigc::mem_fun(*this, &AlgoBox::nodemaplist_changed));
    69       mapstorage->signal_node_map_ch().connect(sigc::mem_fun(*this, &AlgoBox::nodemaplist_changed));
    70       mapstorage->signal_edge_map_ch().connect(sigc::mem_fun(*this, &AlgoBox::edgemaplist_changed));
    70       mapstorage->signal_edge_map_ch().connect(sigc::mem_fun(*this, &AlgoBox::edgemaplist_changed));
    71       nml=mapstorage->getNodeMapList();
    71       nml=mapstorage->getNodeMapList();
    72       eml=mapstorage->getNodeMapList();
    72       eml=mapstorage->getEdgeMapList();
    73     }
    73     }
    74   for(int i=0;i<(int)nodemapcbts.size();i++)
    74   for(int i=0;i<(int)nodemapcbts.size();i++)
    75     {
    75     {
    76       update_cbt(nml, *(nodemapcbts[i]));
    76       update_cbt(nml, *(nodemapcbts[i]));
    77     }
    77     }