13 void Dialog::add_button(Button &button, int code)
16 button.signal_clicked.connect(sigc::bind(sigc::mem_fun(this, &Dialog::response), code));
19 void Dialog::button_release(int x, int y, unsigned button)
21 Panel::button_release(x, y, button);
26 void Dialog::key_release(unsigned key, unsigned mod)
28 Panel::key_release(key, mod);
33 void Dialog::response(int code)
36 signal_response.emit(code);
41 Dialog::Loader::Loader(Dialog &d, WidgetMap &wm):
42 DerivedObjectLoader<Dialog, Panel::Loader>(d, wm)
44 add("action_button", &Loader::action_button);
47 void Dialog::Loader::action_button(const string &n, int c)
49 RefPtr<Button> btn = new Button();
51 obj.add_button(*btn.get(), c);
52 last_widget = wdg_map[n] = btn.release();