X-Git-Url: https://git.llucax.com/z.facultad/75.52/treemulator.git/blobdiff_plain/b4a23678596cdf0fd5993ec6650422a86d2012be..37c9b25e38617bead7998f82531d5e3131a4d7b7:/viewer/view_btree.h?ds=sidebyside diff --git a/viewer/view_btree.h b/viewer/view_btree.h index 918a377..bd4f22c 100644 --- a/viewer/view_btree.h +++ b/viewer/view_btree.h @@ -16,6 +16,23 @@ class ViewBTree : public Canvas::Group, public BTree { public: ViewBTree (Canvas::Group *parent, std::string filename); + static double byte_to_pixels; + protected: + int max_level; /* Lo saco de la raiz */ + /* Posicion X por nivel */ + std::map pos_x; + + void AddNode (uint num); + +}; + +class ViewNode : public Canvas::Group { + public: + ViewNode (Canvas::Group *parent, uint num, BTreeNodeHeader &header, std::list &keys); + + std::list& getChilds () { return hijos; } + private: + std::list hijos; }; #endif