Stefan Schimanski wrote:
Am 06.02.2008 um 09:18 schrieb Abdelrazak Younes:
Stefan Schimanski wrote:
Hi!
I was wondering today how complicated it would be to add a completion
popup to mathed. Well, it took me three hours and here it is.
This looks very useful Stefan. Could you try to make the GUI
implementation generic enough so that it could be used within texted
too? Did you use the Qt completion framework?
Yes, I used the standard QCompleter class. And of course it could be
made generic. What do you have in mind for the texted? Which kind of
information is to be displayed?
We had a thread sometimes ago about text completion. I personally think
that we should maintain a digest of words of more than 4 or 5 characters
for each document. This digest will be filled up at document loading and
maintained when adding a new word.
I think we should also have a document independent list of words that we
store in a file (initially empty). The user would be able to add a new
specific word by right-clicking on it and choose "add to word completer".
Then, either automatically or by choice (depending on user settings),
the completer will pop up if one of the two lists contains matching words.
Abdel.