gui/map_win.cc
changeset 1590 ba2cb5006358
parent 1586 1a8630f2e944
child 1592 4708b716d2f4
equal deleted inserted replaced
7:405c9fa4d266 8:0c6ea5b8d52c
   120 
   120 
   121 }
   121 }
   122 
   122 
   123 void MapWin::eComboChanged(int prop)
   123 void MapWin::eComboChanged(int prop)
   124 {
   124 {
       
   125 
   125   Gtk::Entry* entry = e_combo_array[prop].get_entry();
   126   Gtk::Entry* entry = e_combo_array[prop].get_entry();
   126 
   127 
   127   if(entry)
   128   if(entry)
   128   {
   129   {
   129     Glib::ustring mapname = entry->get_text();
   130     Glib::ustring mapname = entry->get_text();
   247 	    }
   248 	    }
   248 	}
   249 	}
   249     }
   250     }
   250 }
   251 }
   251 
   252 
   252 void MapWin::registerNewEdgeMap(std::string)
   253 void MapWin::registerNewEdgeMap(std::string newmapname)
   253 {
   254 {
   254   std::cout << "void MapWin::registerNewEdgeMap(std::string) is not yet implemented" << std::endl;
   255   for(int i=0;i<EDGE_PROPERTY_NUM;i++)
   255 }
   256   {
   256 
   257     //filling in combo box with choices
   257 void MapWin::registerNewNodeMap(std::string)
   258     std::list<Glib::ustring> listStrings=e_combo_array[i].get_popdown_strings();
   258 {
   259     listStrings.push_back(newmapname);
   259   std::cout << "void MapWin::registerNewNodeMap(std::string) is not yet implemented" << std::endl;
   260     e_combo_array[i].set_popdown_strings(listStrings);
   260 }
   261   }
       
   262   Gtk::Entry* entry = e_combo_array[E_TEXT].get_entry();
       
   263   entry->set_text((Glib::ustring)newmapname);
       
   264 }
       
   265 
       
   266 void 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 }