map_win.cc
branchgui
changeset 40 cebacea4f965
parent 38 9cab23d9b124
child 41 06f1f9a8d51f
equal deleted inserted replaced
7:2cb8a957e8bd 8:b439b7406acf
   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 }