+ ViewNode *vnode = new ViewNode (this, num, node_h, keys);
+ vnode->property_y () = y;
+ vnode->property_x () = pos_x[node_h.level];
+ pos_x[node_h.level] += NODE_WIDTH+10;
+
+ std::list<uint> childs = vnode->getChilds ();
+ std::list<uint>::iterator hit = childs.begin ();
+ while (hit != childs.end ()) {
+ AddNode (*hit);
+ hit++;
+ }
+}
+
+ViewNode::ViewNode (Canvas::Group *parent, uint num, BTreeNodeHeader &header, std::list<BTreeData *> &keys)
+ : Canvas::Group (*parent)
+{
+ double header_w = ViewBTree::byte_to_pixels * sizeof (BTreeNodeHeader);
+
+ /* Fondo */
+ Canvas::Rect *fondo = new Canvas::Rect (*this, 0, 0, NODE_WIDTH, NODE_HEIGHT);
+ fondo->property_fill_color() = "gray";
+ fondo->property_outline_color() = "black";