Hi,

I don't understand why you put the autocompletion feature in YOGScreen when it 
is a easy and much cleaner to add it in TextInput as I suggested in my 
previous mail. If you do so, YOGScreen just as to tell TextInput which are 
the word that can be autocompletey.

Those two methods would have to be aded to TextInput:
void addAutocompletableWord(const std::string &word);
void removeAutocompletableWord(const std::string &word);

TextInput would then also have a list of autocompletable words:
std::set<std::string> autocompletableWords;

The code handling autocompletion would then be in TextInput event handler 
where there is a tab press. The algorithm is given in my previous mail. This 
way it is clean and you can have autocompletion even inside the text when you 
are replacing some part.

Steph

-- 
http://nct.ysagoon.com


_______________________________________________
glob2-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/glob2-devel

Reply via email to