X-Git-Url: https://git.llucax.com/z.facultad/75.52/treemulator.git/blobdiff_plain/88f6f1c9a8861bed8d1907001a10c4605e268a5e..37c9b25e38617bead7998f82531d5e3131a4d7b7:/viewer/view_btree.h?ds=inline diff --git a/viewer/view_btree.h b/viewer/view_btree.h index a03af2b..bd4f22c 100644 --- a/viewer/view_btree.h +++ b/viewer/view_btree.h @@ -16,13 +16,24 @@ class ViewBTree : public Canvas::Group, public BTree { public: ViewBTree (Canvas::Group *parent, std::string filename); + static double byte_to_pixels; protected: - int byte_to_pixels; 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