- BindingTree _tree;// root node of the tree (this doesn't have siblings!)
-
- int find(BindingTree *search);
- bool translate(const std::string &str, Binding &b);
- BindingTree *buildtree(const StringVect &keylist, int id);
-
+ BindingTree _keytree; // root node of the tree (this doesn't have siblings!)
+ BindingTree *_curpos; // position in the keytree
+
+ BindingTree *_mousetree; // this tree is a list. it has only siblings
+
+ int find_key(BindingTree *search) const;
+ bool translate(const std::string &str, Binding &b, bool askey) const;
+ BindingTree *buildtree(const StringVect &keylist, int id) const;
+ void assimilate(BindingTree *node);
+
+ void grabMouseOnAll(bool grab);
+ void grabKeys(bool grab);
+