Some tests have been developed, bugs got fixed.
4 bool EditWin::close_if_escape_is_pressed(GdkEventKey* e)
6 if(e->keyval==GDK_Escape)
13 EditWin::EditWin(const std::string& title, GraphDisplayerCanvas & grdispc):gdc(grdispc),table(2, 2, true)
16 set_default_size(200, 50);
18 signal_key_press_event().connect(sigc::mem_fun(*this, &EditWin::close_if_escape_is_pressed));
21 button=new Gtk::Button("New Node");
22 button->signal_clicked().connect
26 sigc::mem_fun(*this, &EditWin::makeEditorialToolChanged),
30 table.attach(*button,0,1,0,1);
33 button=new Gtk::Button("New Edge");
34 button->signal_clicked().connect
38 sigc::mem_fun(*this, &EditWin::makeEditorialToolChanged),
42 table.attach(*button,1,2,0,1);
45 button=new Gtk::Button("Move");
46 button->signal_clicked().connect
50 sigc::mem_fun(*this, &EditWin::makeEditorialToolChanged),
54 table.attach(*button,0,1,1,2);
62 void EditWin::makeEditorialToolChanged(int newtool)
64 gdc.changeEditorialTool(newtool);