]> git.llucax.com Git - z.facultad/75.52/treemulator.git/blob - viewer/view_btree_data.h
Mejoro inicialización de BTree*Data.
[z.facultad/75.52/treemulator.git] / viewer / view_btree_data.h
1
2 #ifndef _VIEW_BTREE_DATA_H_
3 #define _VIEW_BTREE_DATA_H_
4
5 #include <libgnomecanvasmm.h>
6 #include <string>
7 #include <gtkmm/button.h>
8
9 #include "btree.h"
10 #include "btree_data.h"
11
12 using namespace Gnome;
13
14 class ViewBTreeData :public Canvas::Rect {
15         public:
16                 ViewBTreeData (BTreeData *data, Canvas::Group *parent, double x1, double y1, double x2, double y2);
17                 virtual ~ViewBTreeData () {}
18
19                 static ViewBTreeData *Create (BTreeData *data, Canvas::Group *parent, double x1, double y1, double x2, double y2);
20
21                 typedef SigC::Signal1<void, BTreeData *> type_signal_clicked;
22                 type_signal_clicked signal_clicked ();
23
24         protected:
25                 type_signal_clicked m_signal_clicked;
26
27                 virtual void init (Canvas::Group *parent);
28                 BTreeData *data;
29
30                 virtual bool on_event (GdkEvent *p1);
31 };
32
33 class ViewBTreeChildData :public ViewBTreeData {
34         public:
35                 ViewBTreeChildData (BTreeData *data, Canvas::Group *parent, double x1, double y1, double x2, double y2);
36                 virtual ~ViewBTreeChildData () {}
37
38         protected:
39                 virtual void init (Canvas::Group *parent);
40                 BTreeData *data;
41 };
42 #endif
43