System-Settings

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

System-Settings

Alain Plantec-4
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

SettingSandBox1-alain_plantec.3.mcz (6K) Download Attachment
SettingSandBox2-alain_plantec.5.mcz (3K) Download Attachment
System-Settings-alain_plantec.1.mcz (63K) Download Attachment
UserDefinedSettings-alain_plantec.1.mcz (2K) Download Attachment
SettingTree.gif (52K) Download Attachment