2 #include "new_tree_dialog.h"
5 NewTreeDialog::NewTreeDialog(): Gtk::Dialog ("Nuevo Arbol", true, true)
7 label_block.set_label ("Tamaño de Bloque : ");
8 table.attach (label_block, 0, 1, 0, 1, Gtk::FILL|Gtk::SHRINK, Gtk::SHRINK, 8, 8);
9 table.attach (entry_block, 1, 2, 0, 1, Gtk::FILL|Gtk::EXPAND, Gtk::SHRINK, 8, 8);
11 label_count.set_label ("Cantidad a insertar : ");
12 table.attach (label_count, 0, 1, 1, 2, Gtk::FILL|Gtk::SHRINK, Gtk::SHRINK, 8, 8);
13 table.attach (entry_count, 1, 2, 1, 2, Gtk::FILL|Gtk::EXPAND, Gtk::SHRINK, 8, 8);
15 get_vbox ()->add (table);
17 add_button (Gtk::StockID ("Cancelar"), Gtk::RESPONSE_CANCEL);
18 add_button (Gtk::StockID ("Crear"), Gtk::RESPONSE_OK);
23 uint NewTreeDialog::getAmount ()
25 return atoi (entry_count.get_text ().c_str());
28 uint NewTreeDialog::getBlockSize()
30 return atoi (entry_block.get_text ().c_str());