Le 06/05/2010 14:25, Geert Claes a écrit :

Hi Geert,

It's just that I can't seem to figure out how to save the settings I have
changed?  I did noticed the "Style>  New/Update/Load/Browse/Remove".

yes, if you want to save your current settings you can create a new styles (Style/New). A style is simply a class for which you give a prefix (the name of the class is <prefix>SettingStyle)
it is created in the UserSettingStyle sys. cat.
After you have created it, you can load/update/browse/remove it from the Style menu. You can change the class name suffix and the sys. cat. naming rule directly from the setting browser.

you can also create a new style without the setting browser.
In fact, it can be whatever class which provides the following  two methods:

MyOwnStyle class >>styleName
    "return the style name and is tagged with <settingstyle>
    so that the setting browser recognizes it as a style"
<settingstyle>
    ^ 'MyOwn'

MyOwnStyle>>load
    "set your preferences as an example:"
    UIThemeSoftSqueak beCurrent.

managed to create a new style,
but when selecting "Style>Update" I get this
tiny window titled "Choose" with a wee white box and a Cancel button?  Am I
missing something?
You have created a style named 'MyOwn' (you can enter another name when you create a style). So, select the 'MyOwn' item and then, the state of the settings will be updated.

To try it:
as an example, change the world color or the network proxy or the fonts...
update your style (Style/Update then choose 'MyOwn')
return to another one (Style/load then choose 'Default' or 'Demo' as an example)
then come back to your own style (Style/load choose 'MyOwn')
ps. What is the "Blab email" in the Network section?
it is used in HTTPSocket for GET and POST protocols.
(see the users of the HTTPBlabEmail class variable in HTTPSocket)
can't really say more, maybe a network wizard could explain.

from your screenshot -
don't forget that you have to accept your new value in text entries with cmd-s or with the enter key.

thanks Geert for your feedbacks.

Cheers
Alain


http://n4.nabble.com/file/n2132539/Settings_Browser.png



_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Reply via email to