gui/map_win.cc
changeset 1589 9192e1b26d32
parent 1586 1a8630f2e944
child 1592 4708b716d2f4
     1.1 --- a/gui/map_win.cc	Tue Jul 26 14:31:29 2005 +0000
     1.2 +++ b/gui/map_win.cc	Tue Jul 26 18:14:23 2005 +0000
     1.3 @@ -122,6 +122,7 @@
     1.4  
     1.5  void MapWin::eComboChanged(int prop)
     1.6  {
     1.7 +
     1.8    Gtk::Entry* entry = e_combo_array[prop].get_entry();
     1.9  
    1.10    if(entry)
    1.11 @@ -249,12 +250,26 @@
    1.12      }
    1.13  }
    1.14  
    1.15 -void MapWin::registerNewEdgeMap(std::string)
    1.16 +void MapWin::registerNewEdgeMap(std::string newmapname)
    1.17  {
    1.18 -  std::cout << "void MapWin::registerNewEdgeMap(std::string) is not yet implemented" << std::endl;
    1.19 +  for(int i=0;i<EDGE_PROPERTY_NUM;i++)
    1.20 +  {
    1.21 +    //filling in combo box with choices
    1.22 +    std::list<Glib::ustring> listStrings=e_combo_array[i].get_popdown_strings();
    1.23 +    listStrings.push_back(newmapname);
    1.24 +    e_combo_array[i].set_popdown_strings(listStrings);
    1.25 +  }
    1.26 +  Gtk::Entry* entry = e_combo_array[E_TEXT].get_entry();
    1.27 +  entry->set_text((Glib::ustring)newmapname);
    1.28  }
    1.29  
    1.30 -void MapWin::registerNewNodeMap(std::string)
    1.31 +void MapWin::registerNewNodeMap(std::string newmapname)
    1.32  {
    1.33 -  std::cout << "void MapWin::registerNewNodeMap(std::string) is not yet implemented" << std::endl;
    1.34 +  for(int i=0;i<EDGE_PROPERTY_NUM;i++)
    1.35 +  {
    1.36 +    //filling in combo box with choices
    1.37 +    std::list<Glib::ustring> listStrings=n_combo_array[i].get_popdown_strings();
    1.38 +    listStrings.push_back(newmapname);
    1.39 +    n_combo_array[i].set_popdown_strings(listStrings);
    1.40 +  }
    1.41  }