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 bool Dialog::key_release(unsigned key, unsigned mod)
28 bool result = Panel::key_release(key, mod);
34 void Dialog::response(int code)
37 signal_response.emit(code);
42 Dialog::Loader::Loader(Dialog &d, WidgetMap &wm):
43 DerivedObjectLoader<Dialog, Panel::Loader>(d, wm)
45 add("action_button", &Loader::action_button);
48 void Dialog::Loader::action_button(const string &n, int c)
50 RefPtr<Button> btn = new Button();
52 obj.add_button(*btn.get(), c);
53 last_widget = wdg_map[n] = btn.release();