>>>>> "Andre" == Andre Poenitz <[EMAIL PROTECTED]> writes:

Andre> On Mon, Dec 08, 2003 at 05:51:14PM +0100, Jean-Marc Lasgouttes
Andre> wrote:
>>  Since nobody read my previous patch for dnd support in lyx/qt,
>> here is a second one that adds support for AppleEvent
>> OpenDocuments.

Andre> That's wrong.

I know, but what do you want me to do to get a reaction? ;)

Andre> I read it. But I did not even understand what you were talking
Andre> about let alone able to judge the implications of this patch.

OK. Basically the dnd patch does what trolltech tell us to do to
implement drag-n-drop. The only LyX related thing here is that we need
a way to dispatch LFUN_FILE_OPEN from WorkArea. To this end, I added a
new workarea signal that calls LyXView::dispatch.

Note that this code is already in 1.4.0cvs, but that it has a slightly
different form. What I have in this patch was the simplest
alternative.

For the other patch, we have to be able to intercept the OS X events.
To this end, one overrides QApplication::macEventFilter so that it
actually does something with the events.

Then, in QWorkarea.C I have a free-standing event handler (and an
auxiliary function) that do the actual work of decoding the
OpenDocuments event and sending it to WorkArea::viewDispatch.

The dnd code should work on any qt version (platform independent)

The macEvent code is only compiled on Qt/Mac.

So, I think that the implications are not a problem, but that it can
probably be written in a cleaner way...

Does this help?

JMarc

Reply via email to