2 #ifndef _VIEW_BTREE_DATA_H_
3 #define _VIEW_BTREE_DATA_H_
5 #include <libgnomecanvasmm.h>
7 #include <gtkmm/button.h>
10 #include "btree_data.h"
12 using namespace Gnome;
14 class ViewBTreeData :public Canvas::Rect {
16 ViewBTreeData (BTreeData *data, Canvas::Group *parent, double x1, double y1, double x2, double y2);
17 virtual ~ViewBTreeData () {}
19 static ViewBTreeData *Create (BTreeData *data, Canvas::Group *parent, double x1, double y1, double x2, double y2);
21 typedef SigC::Signal1<void, BTreeData *> type_signal_clicked;
22 type_signal_clicked signal_clicked ();
25 type_signal_clicked m_signal_clicked;
27 virtual void init (Canvas::Group *parent);
30 virtual bool on_event (GdkEvent *p1);
33 class ViewBTreeChildData :public ViewBTreeData {
35 ViewBTreeChildData (BTreeData *data, Canvas::Group *parent, double x1, double y1, double x2, double y2);
36 virtual ~ViewBTreeChildData () {}
39 virtual void init (Canvas::Group *parent);