X-Git-Url: https://git.llucax.com/z.facultad/75.52/treemulator.git/blobdiff_plain/c8b8148848e31e0e39a01ed45c19ccc0d0702a34..fd68ec89fabf4a95e4ebba38fe54041a9ad6d667:/viewer/view_node.h diff --git a/viewer/view_node.h b/viewer/view_node.h index dcd786b..549ccb0 100644 --- a/viewer/view_node.h +++ b/viewer/view_node.h @@ -5,23 +5,31 @@ #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); 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; }; #endif