int type = d.getKeyType ();
int atype = d.getTreeType ();
- tree = Glib::RefPtr<ViewBTree>(new ViewBTree (real_canvas->root(), "test.idx", d.getBlockSize (), atype, type));
+ std::string name = d.getName ();
+ tree = Glib::RefPtr<ViewBTree>(new ViewBTree (real_canvas->root(), name+".idx", d.getBlockSize (), atype, type));
real_frame->SetTree (tree);
tree->signal_selected ().connect ( sigc::mem_fun (*real_frame, &ViewProperties::ShowItem) );
if (type == BTree::KEY_FIXED) {
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);
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 ())