Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0004808 [Squeak] Kernel minor always 09-09-06 16:05 09-09-06 16:05
Reporter Krivanek View Status public  
Assigned To
Priority normal Resolution open  
Status new   Product Version 3.10
Summary 0004808: [KernelImageOverride] Preferences
Description This whole class very much dependent on Morphic and need refactoring. Maybe we need a registry of sets of preferences.

original:

class setNotificationParametersForStandardPreferences
    "Set up the notification parameters for the standard preferences that require need them. When adding new Preferences that require use of the notification mechanism, users declare the notifcation info as part of the call that adds the preference, or afterwards -- the two relevant methods for doing that are:
     Preferences.addPreference:categories:default:balloonHelp:projectLocal:changeInformee:changeSelector: and
    Preference changeInformee:changeSelector:"

        "Preferences setNotificationParametersForStandardPreferences"

    | aPreference |
    #(
        (annotationPanes annotationPanesChanged)
        (eToyFriendly eToyFriendlyChanged)
        (infiniteUndo infiniteUndoChanged)
        (uniTilesClassic classicTilesSettingToggled)
        (optionalButtons optionalButtonsChanged)
        (roundedWindowCorners roundedWindowCornersChanged)
        (showProjectNavigator showProjectNavigatorChanged)
        (smartUpdating smartUpdatingChanged)
        (universalTiles universalTilesSettingToggled)
        (showSharedFlaps sharedFlapsSettingChanged)
        (noviceMode noviceModeSettingChanged)
    ) do:

            [:pair |
                aPreference _ self preferenceAt: pair first.
                aPreference changeInformee: self changeSelector: pair second]

override:

class setNotificationParametersForStandardPreferences
    "Set up the notification parameters for the standard preferences that require need them. When adding new Preferences that require use of the notification mechanism, users declare the notifcation info as part of the call that adds the preference, or afterwards -- the two relevant methods for doing that are:
     Preferences.addPreference:categories:default:balloonHelp:projectLocal:changeInformee:changeSelector: and
    Preference changeInformee:changeSelector:"

        "Preferences setNotificationParametersForStandardPreferences"

    | aPreference |
    #() do:

            [:pair |
                aPreference := self preferenceAt: pair first.
                aPreference changeInformee: self changeSelector: pair second]

original:

class initializeParameters
    "Preferences initializeParameters"
    Parameters _ IdentityDictionary new.
    self restoreDefaultMenuParameters.
    Parameters at: #maxBalloonHelpLineLength put: 28.
    self initializeTextHighlightingParameters

override:

class initializeParameters
    "Preferences initializeParameters"
    Parameters := IdentityDictionary new.


Preferences class addBooleanPreference:category:default:balloonHelp: and similar add messages
- PreferenceViewRegistry replaced with nil. This class is not present in KI
Additional Information
Attached Files

- Relationships

There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
09-09-06 16:05 Krivanek New Issue


Mantis 1.0.8[^]
Copyright © 2000 - 2007 Mantis Group
27 total queries executed.
24 unique queries executed.
Powered by Mantis Bugtracker