X-Git-Url: https://git.llucax.com/z.facultad/75.52/treemulator.git/blobdiff_plain/c8b8148848e31e0e39a01ed45c19ccc0d0702a34..f4eaa9c2418b7084cb973100495fb8290e1c4075:/viewer/view_node.h diff --git a/viewer/view_node.h b/viewer/view_node.h index dcd786b..e401f8f 100644 --- a/viewer/view_node.h +++ b/viewer/view_node.h @@ -5,23 +5,34 @@ #include #include "view_btree.h" #include "view_btree_data.h" -#include "btree.h" using namespace Gnome; class ViewNode : public Canvas::Group { public: - ViewNode (Canvas::Group *parent, uint num, BTreeNodeHeader &header, std::list &keys); + ViewNode (Canvas::Group *parent, uint num, uint padre, BTreeNodeHeader &header, std::list &keys); + + void HighliteKey (Clave &k); std::list& getChilds () { return hijos; } - typedef SigC::Signal2 type_signal_selected; + typedef SigC::Signal3 type_signal_selected; type_signal_selected signal_selected (); + + typedef SigC::Signal3 type_signal_activated; + type_signal_activated signal_activated (); + + void SetSelected (bool); private: - void on_item_clicked (BTreeData *data); + void on_item_clicked (BTreeData *data, ViewBTreeData *); + void on_item_activated (BTreeData *data, ViewBTreeData *); std::list hijos; type_signal_selected m_signal_selected; - uint num; + type_signal_activated m_signal_activated; + uint num, padre; + Canvas::Rect *fondo; + ViewBTreeData *last_selected; + std::list datas; }; #endif