2 #include "view_properties.h"
4 ViewProperties::ViewProperties ():Frame ()
6 vbox.pack_start (node_num, false, false, 5);
7 vbox.pack_start (node_level, false, false, 5);
8 vbox.pack_start (node_items, false, false, 5);
9 vbox.pack_start (node_freespace, false, false, 5);
11 vbox.pack_start (data_type, false, false, 5);
12 vbox.pack_start (data_key, false, false, 5);
13 vbox.pack_start (data_child, false, false, 5);
17 set_label ("Propiedades");
18 set_shadow_type(Gtk::SHADOW_NONE);
21 void ViewProperties::ShowItem (BTreeData *, BTreeNodeHeader &header)
23 std::string s1, s2, s3;
24 std::stringstream ss1, ss2, ss3;
28 node_level.set_label ("Nivel : " + s1);
30 ss2 << header.item_count;
32 node_items.set_label ("Items : " + s2);
34 ss3 << header.free_space;
36 node_freespace.set_label ("Libre : " + s3);