Le 30/01/2018 à 19:32, Jürgen Spitzmüller a écrit :
The following patch allows to select the type of file dialog at
runtime
(see ticket http://www.lyx.org/trac/ticket/11003 for why I am doing
that).

Nice.

Nice, so to speak. To be frank, I have no interest in reworking 20+ dialogs to give them nice buttons. But this is of course desirable in the long term.

1/ apply this patch, maybe with a default of "false" and value
"true"
set in mac and windows lyxrc.dist files. This would give us the same
behavior as before, but configurable

Would be good as a start.

Or set the default to use native everywhere and let experimented people override that.

3/ remove support for our custom file dialog and always use the
native
one (this would lose the Document/Example buttons)

Which would be a pity.

Why? Because of the buttons? José proposed to add an entry "Open example..." in Help menu (could be in File menu too). Would that be enough ?

Note that each OS offers a way to add your own favorite places in a kind of sidebar.

4/  remove support for our custom file dialog and always use the Qt
custom file dialog, and try to make setSidebarUrl work, so that we
have
our Documents/Examples links in the side bar; this cannot work with
a
native file dialog.

This would be the best solution IMHO. But do you know how to make
setSidebarUrl work with proper entries? (I don't).

Well, first, remember that it means no native dialog.

Then the way to do it could be to create links to the proper directories which have the proper names. But this is bound to fail in one way or another. It is a pity that QUrl does not allow to add a text part.


Does somebody use the custom Documents/Examples buttons? Are they
really
needed?

I don't use them anymore personally (I use the native dialog), but I
think they are quite useful. But of course they should work on all
platforms.

Indeed.

JMarc

Reply via email to