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::Signal2<void, BTreeData *, ViewBTreeData *> type_signal_clicked;
22 type_signal_clicked signal_clicked ();
23 typedef SigC::Signal2<void, BTreeData *, ViewBTreeData *> type_signal_double_clicked;
24 type_signal_double_clicked signal_double_clicked ();
26 void SetSelected (bool b);
28 type_signal_clicked m_signal_clicked;
29 type_signal_double_clicked m_signal_double_clicked;
31 virtual void init (Canvas::Group *parent);
34 virtual bool on_event (GdkEvent *p1);
37 class ViewBTreeChildData :public ViewBTreeData {
39 ViewBTreeChildData (BTreeData *data, Canvas::Group *parent, double x1, double y1, double x2, double y2);
40 virtual ~ViewBTreeChildData () {}
43 virtual void init (Canvas::Group *parent);