9 void Dialog::add_button(Button &button, int code)
12 button.signal_clicked.connect(sigc::bind(sigc::mem_fun(this, &Dialog::response), code));
15 void Dialog::set_modal(bool m)
21 signal_grab_pointer.emit();
24 signal_ungrab_pointer.emit();
27 void Dialog::button_release(int x, int y, unsigned button)
29 Panel::button_release(x, y, button);
33 bool Dialog::key_release(unsigned key, unsigned mod)
35 bool result = Panel::key_release(key, mod);
40 bool Dialog::navigate(Navigation nav)
42 bool result = Panel::navigate(nav);
47 void Dialog::response(int code)
50 signal_response.emit(code);
54 void Dialog::check_stale()
61 Dialog::Loader::Loader(Dialog &d, WidgetMap &wm):
62 DerivedObjectLoader<Dialog, Panel::Loader>(d, wm)
64 add("action_button", &Loader::action_button);
67 void Dialog::Loader::action_button(const string &n, int c)
69 RefPtr<Button> btn = new Button();
71 obj.add_button(*btn.get(), c);
72 last_widget = wdg_map[n] = btn.release();