#include "map_win.h" #include bool MapWin::closeIfEscapeIsPressed(GdkEventKey* e) { if(e->keyval==GDK_Escape) { hide(); } return true; } MapWin::MapWin(const std::string& title, MapStorage & mapst, GraphDisplayerCanvas & grdispc, NewMapWin & newmapwin):gdc(grdispc),ms(mapst), nmw(newmapwin) { set_title(title); set_default_size(200, 50); signal_key_press_event().connect(sigc::mem_fun(*this, &MapWin::closeIfEscapeIsPressed)); e_combo_array=new MapSelector * [EDGE_PROPERTY_NUM]; table=new Gtk::Table(EDGE_PROPERTY_NUM, 1, false); for(int i=0;iupdate_list(); } for(int i=0;iupdate_list(); } } void MapWin::updateNode(Node node) { for(int i=0;iupdate(node); } } void MapWin::updateEdge(Edge edge) { for(int i=0;iupdate(edge); } } void MapWin::registerNewEdgeMap(std::string newmapname) { for(int i=0;iappend_text((Glib::ustring)newmapname); } } void MapWin::registerNewNodeMap(std::string newmapname) { for(int i=0;iappend_text((Glib::ustring)newmapname); } }