]> git.llucax.com Git - z.facultad/75.52/treemulator.git/blobdiff - viewer/view_btree.cpp
Muevo el canvas a 0,0 luego.
[z.facultad/75.52/treemulator.git] / viewer / view_btree.cpp
index 6bdcb67d391579fa568586339c5d281b89b1c896..fc1881e1ea4bffffa43423d1680a3e11418d35a4 100644 (file)
@@ -41,7 +41,7 @@ void ViewBTree::on_item_activated (BTreeData *data, uint num, ViewNode *vnode)
 {
        last_selected = NULL;
 
-       uint next = data->getChild ();
+       uint next = data->GetChild ();
        delete vnode;
 
        std::cout << next << std::endl;
@@ -61,7 +61,6 @@ void ViewBTree::on_item_selected (BTreeData *data, uint num, ViewNode *vnode)
                if (vnode != last_selected)
                        last_selected->SetSelected (false);
        last_selected = vnode;
-       vnode->SetSelected (true);
 
        m_signal_selected (data, node_h);
 }
@@ -71,3 +70,14 @@ ViewBTree::type_signal_selected ViewBTree::signal_selected ()
        return m_signal_selected;
 }
 
+void ViewBTree::Clear ()
+{
+       if (last_selected)
+               delete last_selected;
+}
+
+void ViewBTree::HighliteKey (Clave &k)
+{
+       last_selected->HighliteKey (k);
+}
+