BIC-MNI / Display

MNI Display project, converted from CVS
Other
8 stars 4 forks source link

Feature request: Method to save current configuration as Display.globals #31

Open gdevenyi opened 8 years ago

gdevenyi commented 8 years ago

It would be nice if I could configure the display defaults using the menu system and then dump that config to a file, so it will be reloaded on start.

Similar to the window config currently offered.

gdevenyi commented 8 years ago

Connected to #32

rdvincent commented 8 years ago

@gdevenyi Done.

gdevenyi commented 8 years ago

Thanks.

I expected based on older notes that a Display.globals in $HOME would be loaded, but that doesn't seem to be the case? Did the location of the location move? (I'd prefer something lik ~/config/minc anyways...

rdvincent commented 8 years ago

Display.globals is generally either in $HOME or in the directory of the executable. Either one should work. The save feature I implemented just saves to an arbitrary file - it's up to the user to put in the the standard place. If that proves unwieldy or confusing, I can force it to save in the "official" place under the standard name only.

gdevenyi commented 8 years ago

Okay, so I made some changes and saved the globals to $HOME/Display.globals

Upon running again, I don't get those values back.

rdvincent commented 8 years ago

OK. Depending on the values you set, this could be "correct" behavior. Unfortunately, many of the globals are used to set initial values of other parameters. Changing the parameters within Display does not imply changing the globals. If you have specific variables you want to be able to save, let me know what they are and I'll check it out.

gdevenyi commented 8 years ago

Okay, so, this originally triggered by #32

So I change the opacity to 0.4, save globals, and find that my globals file still has the (new) default of 0.5 saved. - I guess this is a bug

Similarly, I change the colour map to grey, I was hoping that the map would be saved in globals. - This may be because it's not saved at all