]> git.llucax.com Git - z.facultad/75.52/treemulator.git/blobdiff - viewer/view_btree_data.h
Reemplaza <> por [] en la documentación para que no se vuelva loco el HTML.
[z.facultad/75.52/treemulator.git] / viewer / view_btree_data.h
index 4fb951023cc6507275341ab98ee68615e9bfca35..e3000da96b5ca98a4996c3da993b089856a437f0 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <libgnomecanvasmm.h>
 #include <string>
+#include <gtkmm/button.h>
 
 #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<void, BTreeData *, ViewBTreeData *> type_signal_clicked;
+               type_signal_clicked signal_clicked ();
+               typedef SigC::Signal2<void, BTreeData *, ViewBTreeData *> 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