X-Git-Url: https://git.llucax.com/z.facultad/75.52/treemulator.git/blobdiff_plain/e994ad95d6fcb7372527146482ce55cea669b6c9..fd68ec89fabf4a95e4ebba38fe54041a9ad6d667:/viewer/view_btree_data.cpp?ds=inline diff --git a/viewer/view_btree_data.cpp b/viewer/view_btree_data.cpp index 9f4142d..d2321c6 100644 --- a/viewer/view_btree_data.cpp +++ b/viewer/view_btree_data.cpp @@ -25,6 +25,9 @@ bool ViewBTreeData::on_event (GdkEvent *p1) 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); @@ -36,6 +39,12 @@ ViewBTreeData::type_signal_clicked ViewBTreeData::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) {