equal
deleted
inserted
replaced
14 * express or implied, and with no claim as to its suitability for any |
14 * express or implied, and with no claim as to its suitability for any |
15 * purpose. |
15 * purpose. |
16 * |
16 * |
17 */ |
17 */ |
18 |
18 |
19 #include <nbtab.h> |
|
20 #include <design_win.h> |
19 #include <design_win.h> |
21 |
20 |
22 bool DesignWin::closeIfEscapeIsPressed(GdkEventKey* e) |
21 bool DesignWin::closeIfEscapeIsPressed(GdkEventKey* e) |
23 { |
22 { |
24 if(e->keyval==GDK_Escape) |
23 if(e->keyval==GDK_Escape) |
26 on_hide(); |
25 on_hide(); |
27 } |
26 } |
28 return true; |
27 return true; |
29 } |
28 } |
30 |
29 |
31 DesignWin::DesignWin(const std::string& title, double attraction_v, double propulsation_v, int iterations_v, NoteBookTab & mw):mytab(mw) |
30 DesignWin::DesignWin(const std::string& title, double attraction_v, double propulsation_v, int iterations_v) |
32 { |
31 { |
33 set_title(title); |
32 set_title(title); |
34 |
33 |
35 mytab.signal_title_ch().connect(sigc::mem_fun(*this, &DesignWin::set_title)); |
34 //mytab.signal_title_ch().connect(sigc::mem_fun(*this, &DesignWin::set_title)); |
36 |
35 |
37 signal_key_press_event().connect(sigc::mem_fun(*this, &DesignWin::closeIfEscapeIsPressed)); |
36 signal_key_press_event().connect(sigc::mem_fun(*this, &DesignWin::closeIfEscapeIsPressed)); |
38 |
37 |
39 Gtk::VBox * vbox=new Gtk::VBox(); |
38 Gtk::VBox * vbox=new Gtk::VBox(); |
40 vbox->set_spacing(5); |
39 vbox->set_spacing(5); |