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);
27 bool operator == (Clave &k) const;
29 type_signal_clicked m_signal_clicked;
30 type_signal_double_clicked m_signal_double_clicked;
32 virtual void init (Canvas::Group *parent);
35 virtual bool on_event (GdkEvent *p1);
38 class ViewBTreeChildData :public ViewBTreeData {
40 ViewBTreeChildData (BTreeData *data, Canvas::Group *parent, double x1, double y1, double x2, double y2);
41 virtual ~ViewBTreeChildData () {}
44 virtual void init (Canvas::Group *parent);