Hi all,
here is a new version:
- taken into account Adrian remarks
- made all part of the Setting-Settings package.
- added filtering: by token or by package
- added style: a style is represented by a subclass of SettingStyle with
a method #load
- one can manage user defined style (no need for demo mode, only have to
create a style named 'my beautiful demo mode')
creating a style consists in creating a subclass of SettingStyle with a
class method #styleName and with
an instance method #load. Style export and import relies on simple
fileout/filein.
- the pragma keyword is now a parameter:
the default is <setting> as in:
desktopColor
<setting>
^ DesktopColor
ifNil: [DesktopColor := (SettingManager newSetting: 'Desktop color')
parent: #desktopColorSettingNode;
default: (MessageSend receiver: Color selector:
#green)]
all standard settings are browsed by 'SettingTree new open'
An application or a particular part of the system can use its own keyword.
as an example <menu> as in:
aSettingAboutMenu
<menu>
^ .....
all menu settings would be browsed by 'SettingTree forKeywords: #(#menu)
open'
I've attached the package System-Settings, SettingSandBox1,
SettingSandBox2 for testing
and a UserDefinedSettings with a style example.
Cheers
Alain
_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project