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);
37 bool Dialog::key_release(unsigned key, unsigned mod)
39 bool result = Panel::key_release(key, mod);
44 bool Dialog::navigate(Navigation nav)
46 bool result = Panel::navigate(nav);
51 void Dialog::response(int code)
54 signal_response.emit(code);
58 void Dialog::check_stale()
65 Dialog::Loader::Loader(Dialog &d, WidgetMap &wm):
66 DerivedObjectLoader<Dialog, Panel::Loader>(d, wm)
68 add("action_button", &Loader::action_button);
71 void Dialog::Loader::action_button(const string &n, int c)
73 RefPtr<Button> btn = new Button();
75 obj.add_button(*btn.get(), c);
76 last_widget = wdg_map[n] = btn.release();