--- /dev/null
+
+#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);
+}
+
--- /dev/null
+
+#ifndef _VIEW_PROPERTIES_H_
+#define _VIEW_PROPERTIES_H_
+
+#include <gtkmm.h>
+#include "btree.h"
+#include "btree_data.h"
+
+class ViewProperties:public Gtk::Frame {
+ public:
+ ViewProperties ();
+
+ void ShowItem (BTreeData *, BTreeNodeHeader &header);
+ private:
+ Gtk::VBox vbox;
+
+ /* Node Info */
+ Gtk::Label node_num;
+ Gtk::Label node_level;
+ Gtk::Label node_items;
+ Gtk::Label node_freespace;
+
+ /* BTreeData Into */
+ Gtk::Label data_type;
+ Gtk::Label data_key;
+ Gtk::Label data_child;
+};
+
+#endif
+