X-Git-Url: https://git.llucax.com/z.facultad/75.52/treemulator.git/blobdiff_plain/3d105729f2a5cd73307e6431a17c21a2c37de459..9939d45f997d2855218e3acf5b51222e9680ce31:/viewer/view_btree.h diff --git a/viewer/view_btree.h b/viewer/view_btree.h index a03af2b..e3a5c68 100644 --- a/viewer/view_btree.h +++ b/viewer/view_btree.h @@ -16,13 +16,27 @@ 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; + /* 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