#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