[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lyx-devel
Subject:    Re: [RFC][PATCH] native file dialogs
From:       Jürgen_Spitzmüller <spitz () lyx ! org>
Date:       2018-01-31 15:17:28
Message-ID: 1517411848.3430.4.camel () lyx ! org
[Download RAW message or body]


Am Mittwoch, den 31.01.2018, 11:00 +0100 schrieb Jean-Marc Lasgouttes:
> Le 31/01/2018 à 08:20, Jürgen Spitzmüller a écrit :
> > > Or set the default to use native everywhere and let experienced
> > > people override that.
> > 
> > Yes. But then, I think, you can also drop it altogether.
> 
> Just because I propose to change the unix default? We need to have a 
> cross platform strategy. There is no real justification for the 
> different handling of the platforms.

I mean if it is only for some "experienced users", I doubt it is worth
all the maintenance hassle.

> > The nice thing about the buttons is that they only occur when it
> > makes
> > sense. And remember we do not only have "Examples". We also show
> > "Templates" (my favorite), "Documents", "Cliparts" (and maybe
> > others).
> > And if done correctly, it could be extended to other places
> > depending
> > on the context (e.g., "BibTeX databases" ($TEXMF/bib) in the BibTeX
> > dialog).
> 
> Yes, I thought about that since writing this message. Note that "New 
> from template" already starts from the template directory.

Yes, I know. The off thing is that it only includes the system
directory, not the user directory (not that the buttons would solve
that).

> Concerning clipart, I do not think that it is of much use. Most OS
> will 
> have a generic place for images.

Indeed.

> There is also the case of ui or bind files, but I think using a
> popup 
> menu there would be much more useful.

How would that look like?

> 
> > > > 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.
> > 
> > Why? Doesn't the method work with native dialogs?
> 
> No: 
> https://code.woboq.org/qt5/qtbase/src/widgets/dialogs/qfiledialog.cpp
> .html#_ZN11QFileDialog14setSidebarUrlsERK5QListI4QUrlE

Too bad. Then setSidebarUrls does not guy us anything above the
buttons.

Jürgen

> 
> JMarc
["signature.asc" (application/pgp-signature)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic