2 #include "key_dialog.h"
5 KeyDialog::KeyDialog(const Glib::ustring& title, bool dato):
6 Gtk::Dialog(title + " Clave", true, true),
7 label_key("Clave"), label_val("Dato")
9 hbox_key.add(label_key);
10 hbox_key.add(entry_key);
11 get_vbox()->add(hbox_key);
14 hbox_val.add(label_val);
15 hbox_val.add(entry_val);
16 get_vbox()->add(hbox_val);
18 add_button(Gtk::StockID("gtk-cancel"), Gtk::RESPONSE_CANCEL);
19 add_button(Gtk::StockID("gtk-ok"), Gtk::RESPONSE_OK);
23 Glib::ustring KeyDialog::key()
25 return entry_key.get_text();
28 Glib::ustring KeyDialog::val()
30 return entry_val.get_text();