Stéphane Ducasse a écrit : > Alain > > It would be nice to redesign completely preferences. yes, it is the reason why I don't want to spend to much time on the improvement of actual PreferenceBrowser. > Did you read the thread > Re: [Pharo-project] About Preference Flow > of 4 of Feb ? yes, I had it in mind. Do someone know where I can find documentation on pragmas ? thanks alain > > Summary here > > Instead of having the current situation ie > > MyTool>>doSomething > > .... > Preferences useNewDiffTool > ifTrue: [kjlhkjhjkh ] > ifFalse: [nkjhkjkjhkj] > > > and not been able to remove the preferences (or that the > preference is > just a configuration layer). > > I would like to have the preference made that way > > MyTool class>>useNewDiff > > MyTool class>> useOldDiff > > **NO REFERENCE TO PREFERENCE IN THE METHOD FLOW!!!! > > > Preferences useNewDiffTool > MyTool useNewDiff > > I like the idea of lukas to use pragmas. > > Why not use pragmas on accessors of the class side that would be > picked up by the preference browser? Then all state would be local to > the affected code. > > Something along these lines: > > MCMonticelloBrowser>>showAdvanceDiffTool: aBoolean > <preference: 'Show advanced diff tool' group: 'Monticello' > type: #Boolean> > > advancedDiffTool := aBoolean > > >>>> Hi all, >> Here is a changeset with a new version of the PreferencesBrowser. >> It is for testing. I can improve it a little bit >> (by including display depth, desktop color, gradient color and author >> initials) >> and provide a slice if it is ok. >> >> I've investigated how preferences are implemented and it seems to me >> that >> current situation is the result of succesives hacks. >> I would like to clean out this part of the system. >> I will provide a roadmap before any coding. >> Can I start working on it ? >> >> Cheers >> alain >>>> >>>>> On 11 Feb 2009, at 16:22, Alain Plantec wrote: >>>>> >>>>> >>>>>> Hi all, >>>>>> I would like to improve the PreferencesBrowser so that it includes >>>>>> standard Fonts preferences (see joined snapshot). >>>>>> It's almost done except that, if a preference font is set to Arial, >>>>>> clicking on Save button leads to an infinite loop. >>>>>> >>>>>> To reproduce it, set button font to Arial-12 and >>>>>> Preferences standardButtonFont deepCopy. >>>>>> >>>>>> Cheers >>>>>> alain >>>>>> < >>>>>> FontsInPreferences >>>>>> .png >>>>>> >>>>>>> <FTFdeepcopy.png>_______________________________________________ >>>>>>> >>>>>> 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 >>>> >>>> >>> >>> >> >> <PBFont.8.cs.gz>_______________________________________________ >> 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
