X-Git-Url: https://git.llucax.com/z.facultad/75.52/treemulator.git/blobdiff_plain/b4a23678596cdf0fd5993ec6650422a86d2012be..379ca6a2fb8c1feb74fb2e5cd78a5a1f5a2f7ab7:/viewer/view_btree_data.h diff --git a/viewer/view_btree_data.h b/viewer/view_btree_data.h index 4fb9510..e3000da 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,19 +14,34 @@ 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::Signal2 type_signal_clicked; + type_signal_clicked signal_clicked (); + typedef SigC::Signal2 type_signal_double_clicked; + type_signal_double_clicked signal_double_clicked (); + + void SetSelected (bool b); + bool operator == (Clave &k) const; protected: + type_signal_clicked m_signal_clicked; + type_signal_double_clicked m_signal_double_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: - BTreeData *data; + virtual void init (Canvas::Group *parent); }; #endif