X-Git-Url: https://git.llucax.com/z.facultad/75.52/treemulator.git/blobdiff_plain/354f66865d010a90b1d81c83bcaf55115e5859e1..d2f2e85785cbffc7068183e09bfb35e9a5f867df:/viewer/new_tree_dialog.cpp diff --git a/viewer/new_tree_dialog.cpp b/viewer/new_tree_dialog.cpp index d3dbf5c..c2df0bf 100644 --- a/viewer/new_tree_dialog.cpp +++ b/viewer/new_tree_dialog.cpp @@ -12,6 +12,10 @@ NewTreeDialog::NewTreeDialog(): Gtk::Dialog ("Nuevo Arbol", true, true), table.attach (fixed_key, 0, 1, 1, 2); table.attach (variable_key, 1, 2, 1, 2); + label_name.set_label ("Nombre de Archivo : "); + table.attach (label_name, 0, 1, 2, 3, Gtk::FILL|Gtk::SHRINK, Gtk::SHRINK, 8, 8); + table.attach (entry_name, 1, 2, 2, 3, Gtk::FILL|Gtk::EXPAND, Gtk::SHRINK, 8, 8); + label_block.set_label ("Tamaño de Bloque : "); table.attach (label_block, 0, 1, 2, 3, Gtk::FILL|Gtk::SHRINK, Gtk::SHRINK, 8, 8); table.attach (entry_block, 1, 2, 2, 3, Gtk::FILL|Gtk::EXPAND, Gtk::SHRINK, 8, 8); @@ -55,6 +59,11 @@ uint NewTreeDialog::getBlockSize() return atoi (entry_block.get_text ().c_str()); } +std::string NewTreeDialog::getName () +{ + return entry_name.get_text (); +} + int NewTreeDialog::getKeyType () { if (fixed_key.get_active ())