Sort of finished.
If you have '\preview true' in your preferences, math insets will get 'previewed' unless the cursor is in the inset. In the latter case we get the usual mathed behaviour. ########################### NOTE ############################# previewUpdate() which will start the pdflatex/dvips conversion is currently called by metrics() which in turn is called by InsetFormula::width(). So if you have lots of width() call and the conversion cache is cold, this is almost equivalent to a fork bomb. You have been warned. ########################### NOTE ############################# Apart from that it looks not too bad. We should probably a bit more lazy about initiating the coversion, maybe just on startup and on "cursor leaves inset", not after almost every keystroke as we do now. And there are cosmetic issues. I don't know how to get the baseline of the preview, the background is still white etc... Andre' -- Those who desire to give up Freedom in order to gain Security, will not have, nor do they deserve, either one. (T. Jefferson)