Jean-Marc Lasgouttes wrote:
Le 15/06/2009 10:37, Abdelrazak Younes a écrit :
Actually, I would have proposed that generally if only we were able
to use QFileDialog::setSidebarUrls. The problem with that method is
that
the URLs cannot be given names, so that if we add $lyxrid/clipart in
the sidebar, it will appear as "clipart". And if we add
$userdir/clipart, it will appear as... "clipart" too.
We could solve that with some symlink tricks, but I do not think
this can be done in wondows (unless lnk files work here).
We use the native dialog on Windows anyway so...
OK, but having our extra targets in the sidebar would be extra nice.
Oh I agree, I was just saying that making that work under Linux first
won't hurt Windows anyway.
How does one create a symlink in windows?
An '.lnk' file can used as pseudo symlink under Windows. The format is
not ascii but is said to be quite simple. We can just generate
'relative' shortcut and use that.
We could have in the user
directory (because the sysem directory is not browsable in OS X)
links/
Clipart/ -> sysdir/clipart
User Clipart/ -> userdir/clipart
Templates/ -> sysdir/templates
...
And use some of these as needed to replace our old buttons.
Should work under Windows too.
Abdel.