]> git.llucax.com Git - z.facultad/75.52/treemulator.git/blobdiff - viewer/view_btree_data.h
Agrego creación de árbol con claves variables en la UI.
[z.facultad/75.52/treemulator.git] / viewer / view_btree_data.h
index 4020b3f68029fb4b2ac36e9329fe02d294548baf..1af3866be6a9340f0a2a9e4f68ef443f0694f113 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <libgnomecanvasmm.h>
 #include <string>
 
 #include <libgnomecanvasmm.h>
 #include <string>
+#include <gtkmm/button.h>
 
 #include "btree.h"
 #include "btree_data.h"
 
 #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);
 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);
 
 
                static ViewBTreeData *Create (BTreeData *data, Canvas::Group *parent, double x1, double y1, double x2, double y2);
 
+               typedef SigC::Signal1<void, BTreeData *> type_signal_clicked;
+               type_signal_clicked signal_clicked ();
+
        protected:
        protected:
+               type_signal_clicked m_signal_clicked;
+
                virtual void init (Canvas::Group *parent);
                BTreeData *data;
                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);
 };
 
 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);
 
        protected:
                virtual void init (Canvas::Group *parent);