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::set_modal(bool m)
25 signal_grab_pointer.emit();
28 signal_ungrab_pointer.emit();
31 void Dialog::button_release(int x, int y, unsigned button)
33 Panel::button_release(x, y, button);
38 bool Dialog::key_release(unsigned key, unsigned mod)
40 bool result = Panel::key_release(key, mod);
46 void Dialog::response(int code)
49 signal_response.emit(code);
54 Dialog::Loader::Loader(Dialog &d, WidgetMap &wm):
55 DerivedObjectLoader<Dialog, Panel::Loader>(d, wm)
57 add("action_button", &Loader::action_button);
60 void Dialog::Loader::action_button(const string &n, int c)
62 RefPtr<Button> btn = new Button();
64 obj.add_button(*btn.get(), c);
65 last_widget = wdg_map[n] = btn.release();