X-Git-Url: https://git.llucax.com/z.facultad/75.52/treemulator.git/blobdiff_plain/9939d45f997d2855218e3acf5b51222e9680ce31..9a71ae8f37248eaec0fb6077fc1da8c1834e7e4b:/viewer/view_btree.h diff --git a/viewer/view_btree.h b/viewer/view_btree.h index e3a5c68..d8e585a 100644 --- a/viewer/view_btree.h +++ b/viewer/view_btree.h @@ -6,6 +6,7 @@ #include #include "btree.h" +#include "view_node.h" #define NODE_WIDTH 500 #define NODE_HEIGHT 50 @@ -17,7 +18,11 @@ class ViewBTree : public Canvas::Group, public BTree { ViewBTree (Canvas::Group *parent, std::string filename); static double byte_to_pixels; + + typedef SigC::Signal2 type_signal_selected; + type_signal_selected signal_selected (); protected: + type_signal_selected m_signal_selected; int max_level; /* Lo saco de la raiz */ /* Posicion X por nivel */ std::map pos_x; @@ -26,17 +31,9 @@ class ViewBTree : public Canvas::Group, public BTree { std::map node_placed; void AddNode (uint num); + void on_item_selected (BTreeData *, uint); }; -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