Hannes Hirzel a écrit :

Hi Hannes

Unfortunately you've took the wrong version :)

SystemSettings and registrable menu are in 1.1.
Please, take the core and browse again.

I suggest you to first take a look at registrable menu implementation.
only 2 classes : MenuRegistration and PragmaMenuBuilder.
see also the class side of MenuRegistrationExample.

The settings implementation is a little bit more complicated but only because of the UI. The setting browser and the setting declaration model are in System-Settings-* sys cat. (removable) The Setting-* sys categories contain all settings declaration (they are removable and do not depend on ANY other setting related package thanks to the builder pattern). They are declared in order to allow their browsing through the use of the SettingBrowser. Preferences are simply class variables which are declared locally where they are used (as in Squeak but without pragma)

Pragma discovering for menu and settings makes use of PragmaCollector (see the class comment).

I can explain more but please browse the code before.
QUESTIONS
A. The fact that you refer me to Google and the Nabble list to find
out the result of your pragma discussion has to be read as - there is
no such document yet. Is this correct?
a documentation about the setting framework in under construction.
B. Is there a list of pragmas and how they are supposed to be used?
<systemsettings> and <worldMenu>
browse all senders to #systemsettings and to #worldMenu to find all settings and menu items declarations.
C. How do you want to handle the menus with pragmas? (It seems that
Pharo is not much further advanced in this area).
again, in 1.1, the world menu is fully dynamically built using pragma
(the same implementation scheme as for settings is used).


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



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

Reply via email to