COIN-OR::LEMON - Graph Library

Changeset 1589:9192e1b26d32 in lemon-0.x for gui/map_win.cc


Ignore:
Timestamp:
07/26/05 20:14:23 (15 years ago)
Author:
Hegyi Péter
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2093
Message:

creates one new edgemap

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gui/map_win.cc

    r1586 r1589  
    123123void MapWin::eComboChanged(int prop)
    124124{
     125
    125126  Gtk::Entry* entry = e_combo_array[prop].get_entry();
    126127
     
    250251}
    251252
    252 void MapWin::registerNewEdgeMap(std::string)
    253 {
    254   std::cout << "void MapWin::registerNewEdgeMap(std::string) is not yet implemented" << std::endl;
    255 }
    256 
    257 void MapWin::registerNewNodeMap(std::string)
    258 {
    259   std::cout << "void MapWin::registerNewNodeMap(std::string) is not yet implemented" << std::endl;
    260 }
     253void MapWin::registerNewEdgeMap(std::string newmapname)
     254{
     255  for(int i=0;i<EDGE_PROPERTY_NUM;i++)
     256  {
     257    //filling in combo box with choices
     258    std::list<Glib::ustring> listStrings=e_combo_array[i].get_popdown_strings();
     259    listStrings.push_back(newmapname);
     260    e_combo_array[i].set_popdown_strings(listStrings);
     261  }
     262  Gtk::Entry* entry = e_combo_array[E_TEXT].get_entry();
     263  entry->set_text((Glib::ustring)newmapname);
     264}
     265
     266void MapWin::registerNewNodeMap(std::string newmapname)
     267{
     268  for(int i=0;i<EDGE_PROPERTY_NUM;i++)
     269  {
     270    //filling in combo box with choices
     271    std::list<Glib::ustring> listStrings=n_combo_array[i].get_popdown_strings();
     272    listStrings.push_back(newmapname);
     273    n_combo_array[i].set_popdown_strings(listStrings);
     274  }
     275}
Note: See TracChangeset for help on using the changeset viewer.