+
+#include "view_properties.h"
+
+ViewProperties::ViewProperties ():Frame ()
+{
+ vbox.pack_start (node_num, false, false, 5);
+ vbox.pack_start (node_level, false, false, 5);
+ vbox.pack_start (node_items, false, false, 5);
+ vbox.pack_start (node_freespace, false, false, 5);
+
+ vbox.pack_start (data_type, false, false, 5);
+ vbox.pack_start (data_key, false, false, 5);
+ vbox.pack_start (data_child, false, false, 5);
+
+ add (vbox);
+
+ set_label ("Propiedades");
+ set_shadow_type(Gtk::SHADOW_NONE);
+}
+
+void ViewProperties::ShowItem (BTreeData *, BTreeNodeHeader &header)
+{
+ std::string s1, s2, s3;
+ std::stringstream ss1, ss2, ss3;
+
+ ss1 << header.level;
+ ss1 >> s1;
+ node_level.set_label ("Nivel : " + s1);
+
+ ss2 << header.item_count;
+ ss2 >> s2;
+ node_items.set_label ("Items : " + s2);
+
+ ss3 << header.free_space;
+ ss3 >> s3;
+ node_freespace.set_label ("Libre : " + s3);
+}
+