X-Git-Url: https://git.llucax.com/z.facultad/75.52/treemulator.git/blobdiff_plain/439b54b40ab317655a60bf1c323446b3dfb6e7d2..44c4c40e48cc4a72e81e0af80842738c45d6116f:/viewer/view_btree_data.h?ds=sidebyside diff --git a/viewer/view_btree_data.h b/viewer/view_btree_data.h index 4020b3f..1af3866 100644 --- a/viewer/view_btree_data.h +++ b/viewer/view_btree_data.h @@ -4,6 +4,7 @@ #include #include +#include #include "btree.h" #include "btree_data.h" @@ -13,17 +14,26 @@ using namespace Gnome; class ViewBTreeData :public Canvas::Rect { public: ViewBTreeData (BTreeData *data, Canvas::Group *parent, double x1, double y1, double x2, double y2); + virtual ~ViewBTreeData () {} static ViewBTreeData *Create (BTreeData *data, Canvas::Group *parent, double x1, double y1, double x2, double y2); + typedef SigC::Signal1 type_signal_clicked; + type_signal_clicked signal_clicked (); + protected: + type_signal_clicked m_signal_clicked; + virtual void init (Canvas::Group *parent); BTreeData *data; + + virtual bool on_event (GdkEvent *p1); }; class ViewBTreeChildData :public ViewBTreeData { public: ViewBTreeChildData (BTreeData *data, Canvas::Group *parent, double x1, double y1, double x2, double y2); + virtual ~ViewBTreeChildData () {} protected: virtual void init (Canvas::Group *parent);