]> git.llucax.com Git - z.facultad/75.52/treemulator.git/blobdiff - viewer/view_node.h
Método para limpiar la vista del árbol.
[z.facultad/75.52/treemulator.git] / viewer / view_node.h
index dcd786bb8e35a4a32c4c4702a3495f39b828b5c8..549ccb0095869dde6e11e14fa4c9ba17401da2b3 100644 (file)
@@ -5,23 +5,31 @@
 #include <libgnomecanvasmm.h>
 #include "view_btree.h"
 #include "view_btree_data.h"
-#include "btree.h"
 
 using namespace Gnome;
 
 class ViewNode : public Canvas::Group {
        public:
-               ViewNode (Canvas::Group *parent, uint num, BTreeNodeHeader &header, std::list<BTreeData *> &keys);
+               ViewNode (Canvas::Group *parent, uint num, uint padre, BTreeNodeHeader &header, std::list<BTreeData *> &keys);
 
                std::list<uint>& getChilds () { return hijos; } 
 
-               typedef SigC::Signal2<void, BTreeData *, uint> type_signal_selected;
+               typedef SigC::Signal3<void, BTreeData *, uint, ViewNode *> type_signal_selected;
                type_signal_selected signal_selected ();
+
+               typedef SigC::Signal3<void, BTreeData *, uint, ViewNode *> type_signal_activated;
+               type_signal_activated signal_activated ();
+
+               void SetSelected (bool);
        private:
-               void on_item_clicked (BTreeData *data);
+               void on_item_clicked (BTreeData *data, ViewBTreeData *);
+               void on_item_activated (BTreeData *data, ViewBTreeData *);
                std::list<uint> hijos;
                type_signal_selected m_signal_selected;
-               uint num;
+               type_signal_activated m_signal_activated;
+               uint num, padre;
+               Canvas::Rect *fondo;
+               ViewBTreeData *last_selected;
 };
 
 #endif