]> git.llucax.com Git - z.facultad/75.52/treemulator.git/blobdiff - viewer/view_node.h
tagged 1.1
[z.facultad/75.52/treemulator.git] / viewer / view_node.h
index dcd786bb8e35a4a32c4c4702a3495f39b828b5c8..e401f8fc7e93f8ee9ab40cd2bf0865a8a0469d1f 100644 (file)
@@ -5,23 +5,34 @@
 #include <libgnomecanvasmm.h>
 #include "view_btree.h"
 #include "view_btree_data.h"
 #include <libgnomecanvasmm.h>
 #include "view_btree.h"
 #include "view_btree_data.h"
-#include "btree.h"
 
 using namespace Gnome;
 
 class ViewNode : public Canvas::Group {
        public:
 
 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);
+
+               void HighliteKey (Clave &k);
 
                std::list<uint>& getChilds () { return hijos; } 
 
 
                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 ();
                type_signal_selected signal_selected ();
+
+               typedef SigC::Signal3<void, BTreeData *, uint, ViewNode *> type_signal_activated;
+               type_signal_activated signal_activated ();
+
+               void SetSelected (bool);
        private:
        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;
                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;
+               std::list<ViewBTreeData *> datas;
 };
 
 #endif
 };
 
 #endif