equal
deleted
inserted
replaced
7 on_hide(); |
7 on_hide(); |
8 } |
8 } |
9 return true; |
9 return true; |
10 } |
10 } |
11 |
11 |
12 DesignWin::DesignWin(const std::string& title, double attraction_v, double propulsation_v, int iterations_v) |
12 DesignWin::DesignWin(const std::string& title, double attraction_v, double propulsation_v, int iterations_v, NoteBookTab & mw):mytab(mw) |
13 { |
13 { |
14 set_title(title); |
14 set_title(title); |
|
15 |
|
16 mytab.signal_title_ch().connect(sigc::mem_fun(*this, &DesignWin::set_title)); |
15 |
17 |
16 signal_key_press_event().connect(sigc::mem_fun(*this, &DesignWin::closeIfEscapeIsPressed)); |
18 signal_key_press_event().connect(sigc::mem_fun(*this, &DesignWin::closeIfEscapeIsPressed)); |
17 |
19 |
18 Gtk::VBox * vbox=new Gtk::VBox(); |
20 Gtk::VBox * vbox=new Gtk::VBox(); |
19 vbox->set_spacing(5); |
21 vbox->set_spacing(5); |
62 |
64 |
63 void DesignWin::emit_iteration() |
65 void DesignWin::emit_iteration() |
64 { |
66 { |
65 signal_iteration_ch.emit((int)iteration->get_value()); |
67 signal_iteration_ch.emit((int)iteration->get_value()); |
66 } |
68 } |
|
69 |
|
70 void DesignWin::set_title(std::string tabname) |
|
71 { |
|
72 Gtk::Window::set_title("Design Setup - "+tabname); |
|
73 } |