- Canvas::Rect *view_header = new Canvas::Rect (*this, x, 0, x+header_w, NODE_HEIGHT);
- x += header_w;
+ 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;
+ vnode->signal_selected().connect ( sigc::mem_fun (*this, &ViewBTree::on_item_selected) );