Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
Line: 128 to 130 | ||||||||
From one side, if you want to introduce a new category, you need to write a preferences panel, and then register it. | ||||||||
Changed: | ||||||||
< < | Afterwards, client code would want to read those preferences, which is done through the UserPreferences class. | |||||||
> > | Afterwards, client code would want to read those preferences, which is done through the UserPreferences class. | |||||||
Probably it would also want to listen to modifications, so the user doesn't need to restart HIPE for his changes being applied. Optionally, you may want to link a preference to an existing property that you just want to migrate to the preferences framework. | ||||||||
Line: 262 to 264 | ||||||||
The next step is to use the preferences in client code. | ||||||||
Changed: | ||||||||
< < | This is very easy and just implies using UserPreferences where you would use Configuration. | |||||||
> > | This is very easy and just implies using UserPreferences where you would use Configuration. | |||||||
Example: |