[KDE/Mac] new year's resolution: opening files "the Mac way" (TM)
Christoph Cullmann
cullmann at absint.com
Fri Jan 1 19:24:59 UTC 2016
Hi,
> On Friday January 01 2016 17:47:17 Christoph Cullmann wrote:
>
> Hi,
>
> Apparently you already looked into this?
>
>> I can tell you that this needs to be done at the application level, not at kpart
>> level.
>
> Can you explain why? Does that mean it won't be possible to encapsulate the
> functionality in a framework?
I think the Qt support is already ok enough, the application just needs to handle it.
That should just be a few lines of code, not sure if any more wrapping will make this less work.
>
>> E.g. in Kate, you would need to handle QFileOpenEvent just like a dbus request
>> to open
>> a new file (atm I guess only the variant that has some url is feasible, the
>> other variant
>> won't work with the current interfaces to the editor part we have).
>
> The QString QFE::file() variant, or the one that returns an opened QFile? I'm
> not sure that one would even be relevant (or even in what circumstances it has
> to be used).
I think the one with the QString is atm the thing Kate can easily support.
>
>>
>> Same for e.g. KWrite, just open a new windows with the file, like file open.
>
> If memory serves me well, the old MacOS used to handle file open requests like
> that: it would more or less send the same even to the application that would be
> sent when using the File/Open menu, and somehow shortcut the file selection
> dialog.
> At least, that's what the guy I shared my office with claimed, but he was
> usually right about this kind of thing :)
Then that is all fine, as long as Qt handles all right with the QFileOpenEvent each app
that wants to have support just needs 5 lines of handling this event.
Guess I should add the handling to Kate/KWrite ;=)
Greetings
Christoph
--
----------------------------- Dr.-Ing. Christoph Cullmann ---------
AbsInt Angewandte Informatik GmbH Email: cullmann at AbsInt.com
Science Park 1 Tel: +49-681-38360-22
66123 Saarbrücken Fax: +49-681-38360-20
GERMANY WWW: http://www.AbsInt.com
--------------------------------------------------------------------
Geschäftsführung: Dr.-Ing. Christian Ferdinand
Eingetragen im Handelsregister des Amtsgerichts Saarbrücken, HRB 11234
More information about the kde-mac
mailing list