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 std::list<uint>& getChilds () { return hijos; }
17 typedef SigC::Signal3<void, BTreeData *, uint, ViewNode *> type_signal_selected;
18 type_signal_selected signal_selected ();
20 typedef SigC::Signal3<void, BTreeData *, uint, ViewNode *> type_signal_activated;
21 type_signal_activated signal_activated ();
23 void SetSelected (bool);
25 void on_item_clicked (BTreeData *data, ViewBTreeData *);
26 void on_item_activated (BTreeData *data, ViewBTreeData *);
27 std::list<uint> hijos;
28 type_signal_selected m_signal_selected;
29 type_signal_activated m_signal_activated;
32 ViewBTreeData *last_selected;