X-Git-Url: https://git.llucax.com/z.facultad/75.52/treemulator.git/blobdiff_plain/b4a23678596cdf0fd5993ec6650422a86d2012be..ca4f831a3835de978b27c7e198b2b52999aa8f3e:/viewer/view_btree.h diff --git a/viewer/view_btree.h b/viewer/view_btree.h index 918a377..e3a5c68 100644 --- a/viewer/view_btree.h +++ b/viewer/view_btree.h @@ -16,6 +16,26 @@ 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; + /* Control para no poner 2 veces un nodo */ + /* Un nodo que quiera ser puesto 2 veces es un bug :) */ + std::map node_placed; + + 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