Hi Matthias,
would it be hard to implement the QFileOpenEvent described at
http://doc.qt.digia.com/qq/qq18-macfeatures.html#newevents
for MAC OS X ?
It would allow to double click gds files from finder and have klayout opening it, maybe in a new few if klayout is already open.
Thanks,
Hannes
Comments
Hi Hannes,
surely that is possible, but lacking MacOS hardware I will not be able to test it (unless someone gets Apple to spend a tiny fraction of it's record revenue to sponsor some MacOS box ... :-) ).
As I understand, for QFileOpenEvent there is nothing like the usual, event-specific callbacks like in QWidget, so the following seems to be required:
Parts of this code must be wrapped in "#if defined ... #endif" clauses such that they will not be compiled when QFileOpenEvent is not available (in particular for Qt versions <4.6).
I don't know whether it is helpful if such a change goes into the codebase untested.
BTW: drag and drop is already implemented and available on all platforms.
Best regards,
Matthias
thanks, I'll see to it and convince Apple.
Best regards,
Hannes