Am 04.10.2010 um 08:05 schrieb Jürgen Spitzmüller: > Stephan Witt wrote: > >>> >>>> Is it of any use to provide lyxrc.template_path twice? >>>> Once in the sidebar and again in the presetted path? >>> >>> I don't understand. Where is it provided twice? >> >> The button target is the same as the start directory. >> (First argument of dlg.open) > > I think this is OK. So you can use the button to navigate back if you went to > another location.
Ok. That makes sense. (But using the "Go back" button would be an option too.) >>> The long term goal, I think, would be to get rid of the buttons and use >>> the sidebar only. >> >> The buttons and the sidebar are "alternatives" - an implementation detail. > > Yes, but the sidebar would be much nicer. And we wouldn't be limited to two > places. Of course, and the button1 and button2 could/should be replaced by a list of locations when using sidebar instead of the special buttons. > >>>> I'd expect lyxrc.template_path in Button1 and sys-template-path in >>>> Button2. >>> >>> What is sys-template-path? >> >> The location of the templates inside the install directory. >> The other one is the location of the templates inside the user dir. >> >> Or I didn't understand something... > > No, we only have the system templates directory AFAIK. Personally, I have a > symlink there to my personal templates directory (~/.lyx/templates). It's a > long time request to have both accessible. The Mac default for lyxrc.template_path is not the path to LyX's templates. It's "~/Library/Application Support/l...@version_suffix@/templates". That's why you have no templates at all at first. (It's like "~/.lyx/templates") >> The problem I want to solve is the following: >> >> The mac bundle is not traversable via the open dialog. >> So you cannot reach the system examples and templates. > > But you can reach the user examples and templates? I thought those buttons > are > not there at all on Windows and the Mac. That's correct - the buttons are not there. The user examples and templates are the starting points. (But since they are empty at the beginning not really useful.) I proposed to fill them with the "system" files. But I was convinced that would be not a good move. So now I'm trying to point to the system files from users home with a symlink. (A little bit selfish - since it's no option for Windows.) >> The work-around would be to create symlinks in the user directory. >> The target of the symlinks would be the location of the system templates >> for "New from template". For the normal open the examples location would >> be the other target. > > Instead of symlinks, we should really try to make the places bar functional > to > us (on all platforms). Last time I looked, the only remaining problem was > that > you could not customize the (gui) name of the place via Qt. The name would > always be the folder name (i.e., "templates" in both cases). The problem with the sidebar is: it's not working on Mac with native dialogues. And that's really annoying. The native dialogue is much preferable. Using the Qt4 one looks really outlawed and has less functionality compared to the native one. But I think that's not Trolltechs fault. The API on Mac seems to lack support for manipulating the sidebar area. Currently I'm lost... Stephan
