5 #include <libgnomecanvasmm.h>
6 #include "view_btree.h"
7 #include "view_btree_data.h"
11 class ViewNode : public Canvas::Group {
13 ViewNode (Canvas::Group *parent, uint num, uint padre, BTreeNodeHeader &header, std::list<BTreeData *> &keys);
15 void HighliteKey (Clave &k);
17 std::list<uint>& getChilds () { return hijos; }
19 typedef SigC::Signal3<void, BTreeData *, uint, ViewNode *> type_signal_selected;
20 type_signal_selected signal_selected ();
22 typedef SigC::Signal3<void, BTreeData *, uint, ViewNode *> type_signal_activated;
23 type_signal_activated signal_activated ();
25 void SetSelected (bool);
27 void on_item_clicked (BTreeData *data, ViewBTreeData *);
28 void on_item_activated (BTreeData *data, ViewBTreeData *);
29 std::list<uint> hijos;
30 type_signal_selected m_signal_selected;
31 type_signal_activated m_signal_activated;
34 ViewBTreeData *last_selected;
35 std::list<ViewBTreeData *> datas;