5 #include <libgnomecanvasmm.h>
10 #define NODE_WIDTH 500
11 #define NODE_HEIGHT 50
13 using namespace Gnome;
15 class ViewBTree : public Canvas::Group, public BTree {
17 ViewBTree (Canvas::Group *parent, std::string filename);
19 static double byte_to_pixels;
21 int max_level; /* Lo saco de la raiz */
22 /* Posicion X por nivel */
23 std::map<uint,double> pos_x;
25 void AddNode (uint num);
29 class ViewNode : public Canvas::Group {
31 ViewNode (Canvas::Group *parent, uint num, BTreeNodeHeader &header, std::list<BTreeData *> &keys);
33 std::list<uint>& getChilds () { return hijos; }
35 std::list<uint> hijos;