Upon a fresh install of KDE..

Carsten Pfeiffer carpdjih at mailbox.tu-berlin.de
Tue Jun 24 14:08:17 BST 2003


-----BEGIN PGP SIGNED MESSAGE-----

On Tuesday 24 June 2003 01:30, Scott Wheeler wrote:

> I was just looking at things and I noticed that in the current
> implementation it does create a new instance of KSpell for every textbox
> that uses it; I'll probably move to some kind of reference counted KSpell
> instance (basically a singleton with a reference count that deletes itself
> when nothing is using it), but I'm not sure if the fix should be in KSpell
> or
> KDictSpellingHighlighter.

I thought about a similar thing, but I'm not sure it's that easy. Maybe you 
want to have different languages in different KTextEdits (e.g. when composing 
two mails). Also those KSpell objects can be in different states, you can't 
simply share them (you probably need to extract the state into a lightweight 
object that each KTextEdit aggregates and apply that state to the KSpell 
object when the focus changes.

I also imagine that peole using KTextEdit want to have access to the KSpell 
object, e.g. to add some custom words to the database.

Cheers
Carsten Pfeiffer
-----BEGIN PGP SIGNATURE-----

iQEVAwUBPvhNQaWgYMJuwmZtAQFQSQgAv7a3z6szmYItutltfUWE8qq6j6CIRria
apw2RCyZR7rzq9JtBF2V6wEck882xWDpXLf+PtEfy7gN6td730KZq9m2x6nqKFZR
ugrvGXTaZO+/PEfH7R+FSC+rEqSG9JpmB9m8jq3s+upu6X6R88XemEGoe1KlRSQM
OhC+qk01g2LfHuQo6aM8JczqADSpKaEAq+HiuDOh2JHu85HWQXxUyEXg6P/03vmo
VGvIYLNPSdywCfUO4MmevIWeuttqt+2gXnll6/5xZW+KICsPOPtGwag17muIV9Uj
K98ZHvWas7RhWn6DRm78yPlmMQp7fP4/SBFScrcyxCkNHd6OIsHkWw==
=SZT8
-----END PGP SIGNATURE-----




More information about the kde-core-devel mailing list