X-Git-Url: https://git.llucax.com/z.facultad/75.52/treemulator.git/blobdiff_plain/24f882b98f421e1d65f4fa46cda094f2ac2a34cd..d20c097dbead0e618d5e1460bd47104689558b22:/viewer/new_tree_dialog.cpp?ds=sidebyside diff --git a/viewer/new_tree_dialog.cpp b/viewer/new_tree_dialog.cpp index 8c77cf4..7899cc9 100644 --- a/viewer/new_tree_dialog.cpp +++ b/viewer/new_tree_dialog.cpp @@ -4,11 +4,16 @@ NewTreeDialog::NewTreeDialog(): Gtk::Dialog ("Nuevo Arbol", true, true) { - label.set_label ("Cantidad a insertar : "); + label_block.set_label ("Tamaño de Bloque : "); + table.attach (label_block, 0, 1, 0, 1, Gtk::FILL|Gtk::SHRINK, Gtk::SHRINK, 8, 8); + table.attach (entry_block, 1, 2, 0, 1, Gtk::FILL|Gtk::EXPAND, Gtk::SHRINK, 8, 8); + + label_count.set_label ("Cantidad a insertar : "); + table.attach (label_count, 0, 1, 1, 2, Gtk::FILL|Gtk::SHRINK, Gtk::SHRINK, 8, 8); + table.attach (entry_count, 1, 2, 1, 2, Gtk::FILL|Gtk::EXPAND, Gtk::SHRINK, 8, 8); + + get_vbox ()->add (table); - hbox.pack_start (label, false, true, 8); - hbox.pack_start (entry, true, true, 8); - get_vbox ()->add (hbox); add_button (Gtk::StockID ("Cancelar"), Gtk::RESPONSE_CANCEL); add_button (Gtk::StockID ("Crear"), Gtk::RESPONSE_OK); @@ -17,6 +22,11 @@ NewTreeDialog::NewTreeDialog(): Gtk::Dialog ("Nuevo Arbol", true, true) uint NewTreeDialog::getAmount () { - return atoi (entry.get_text ().c_str()); + return atoi (entry_count.get_text ().c_str()); +} + +uint NewTreeDialog::getBlockSize() +{ + return atoi (entry_block.get_text ().c_str()); }