]> git.llucax.com Git - z.facultad/75.52/treemulator.git/blob - viewer/view_node.h
Mejoro inicialización de BTree*Data.
[z.facultad/75.52/treemulator.git] / viewer / view_node.h
1
2 #ifndef _VIEW_NODE_H_
3 #define _VIEW_NODE_H_
4
5 #include <libgnomecanvasmm.h>
6 #include "view_btree.h"
7 #include "view_btree_data.h"
8 #include "btree.h"
9
10 using namespace Gnome;
11
12 class ViewNode : public Canvas::Group {
13         public:
14                 ViewNode (Canvas::Group *parent, uint num, BTreeNodeHeader &header, std::list<BTreeData *> &keys);
15
16                 std::list<uint>& getChilds () { return hijos; } 
17
18                 typedef SigC::Signal2<void, BTreeData *, uint> type_signal_selected;
19                 type_signal_selected signal_selected ();
20         private:
21                 void on_item_clicked (BTreeData *data);
22                 std::list<uint> hijos;
23                 type_signal_selected m_signal_selected;
24                 uint num;
25 };
26
27 #endif
28