]> git.llucax.com Git - z.facultad/75.52/treemulator.git/blob - viewer/view_btree_data.h
4020b3f68029fb4b2ac36e9329fe02d294548baf
[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
8 #include "btree.h"
9 #include "btree_data.h"
10
11 using namespace Gnome;
12
13 class ViewBTreeData :public Canvas::Rect {
14         public:
15                 ViewBTreeData (BTreeData *data, Canvas::Group *parent, double x1, double y1, double x2, double y2);
16
17                 static ViewBTreeData *Create (BTreeData *data, Canvas::Group *parent, double x1, double y1, double x2, double y2);
18
19         protected:
20                 virtual void init (Canvas::Group *parent);
21                 BTreeData *data;
22 };
23
24 class ViewBTreeChildData :public ViewBTreeData {
25         public:
26                 ViewBTreeChildData (BTreeData *data, Canvas::Group *parent, double x1, double y1, double x2, double y2);
27
28         protected:
29                 virtual void init (Canvas::Group *parent);
30                 BTreeData *data;
31 };
32 #endif
33