Angus Leeming <[EMAIL PROTECTED]> writes: | I'm sure that the wizards will be able to help here. Wizards, are | you reading this? I'd like to generate small batches of these | previews, say for the first three or four screen heights. | Thereafter, if I arrive at an inset for which a preview hasn't been | generated, I'd like to generate previews for three or four screen | heights around it. Any thoughts on an interface? | | Anyway, the current implementation is certainly Ok for 30 or 40 equations.
[Your lines are awfully long...] IMHO this is perfect for either a separate process or a thread..., we would then push conversion requests onto a queue, and the queue would pop requests off this queue, handle it, and put the result back on a "result queue", and notify the main event handler that something should be done with it. If we could make it so that the thread do not actually use any of the lyx data structures, then we would have no concurrency problems either. Have a look at boost::thread, I already have code for thread queues etc. -- Lgb