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 get_vbox()->add(table);
10 table.attach (label_key, 0, 1, 0, 1, Gtk::FILL|Gtk::SHRINK, Gtk::SHRINK, 8, 8);
11 table.attach (entry_key, 1, 2, 0, 1, Gtk::FILL|Gtk::EXPAND, Gtk::SHRINK, 8, 8);
14 table.attach (label_val, 0, 1, 1, 2, Gtk::FILL|Gtk::SHRINK, Gtk::SHRINK, 8, 8);
15 table.attach (entry_val, 1, 2, 1, 2, Gtk::FILL|Gtk::EXPAND, Gtk::SHRINK, 8, 8);
17 add_button(Gtk::StockID("gtk-cancel"), Gtk::RESPONSE_CANCEL);
18 add_button(Gtk::StockID("gtk-ok"), Gtk::RESPONSE_OK);
22 Glib::ustring KeyDialog::key()
24 return entry_key.get_text();
27 Glib::ustring KeyDialog::val()
29 return entry_val.get_text();