2 #include "new_tree_dialog.h"
5 NewTreeDialog::NewTreeDialog(): Gtk::Dialog ("Nuevo Arbol", true, true)
7 label.set_label ("Cantidad a insertar : ");
9 hbox.pack_start (label, false, true, 8);
10 hbox.pack_start (entry, true, true, 8);
11 get_vbox ()->add (hbox);
12 add_button (Gtk::StockID ("Cancelar"), Gtk::RESPONSE_CANCEL);
13 add_button (Gtk::StockID ("Crear"), Gtk::RESPONSE_OK);
18 uint NewTreeDialog::getAmount ()
20 return atoi (entry.get_text ().c_str());