]> git.llucax.com Git - z.facultad/75.52/treemulator.git/blobdiff - viewer/view_btree_data.cpp
Agrega ABB (Altas, Bajas y Búsqueda ;) de claves al viewer.
[z.facultad/75.52/treemulator.git] / viewer / view_btree_data.cpp
index 9f4142d5df165e46c7313fbdaf160f4ed07d4dd3..d2321c6e8d6ca976795e31f010dc704d07edb717 100644 (file)
@@ -25,6 +25,9 @@ bool ViewBTreeData::on_event (GdkEvent *p1)
        switch (p1->type) {
                case GDK_BUTTON_PRESS:
                        m_signal_clicked(data, this);
        switch (p1->type) {
                case GDK_BUTTON_PRESS:
                        m_signal_clicked(data, this);
+               break;
+               case GDK_2BUTTON_PRESS:
+                       m_signal_double_clicked (data, this);
        }
 
        return Canvas::Rect::on_event (p1);
        }
 
        return Canvas::Rect::on_event (p1);
@@ -36,6 +39,12 @@ ViewBTreeData::type_signal_clicked ViewBTreeData::signal_clicked ()
        return m_signal_clicked;
 }
 
        return m_signal_clicked;
 }
 
+ViewBTreeData::type_signal_double_clicked ViewBTreeData::signal_double_clicked ()
+{
+       return m_signal_double_clicked;
+}
+
+
 ViewBTreeData*
 ViewBTreeData::Create (BTreeData *data, Canvas::Group *parent, double x1, double y1, double x2, double y2)
 {
 ViewBTreeData*
 ViewBTreeData::Create (BTreeData *data, Canvas::Group *parent, double x1, double y1, double x2, double y2)
 {