#import <MyUserPrefsController.h>


Public Member Functions | |
| (void) | - getNumericPref:forKey:minValue:maxValue: |
| Read a numeric preference with bounds. | |
| (IBAction) | - resetPrefs: |
| Reset the preferences to their "factory defaults" values. | |
| (IBAction) | - applyChanges: |
| Save the new preferences and leave the preferences panel open. | |
| (IBAction) | - cancelChanges: |
| Close the preferences panel and discard its preferences. | |
| (IBAction) | - confirmChanges: |
| Save the new preferences and close the preferences panel. | |
| (IBAction) | - showPrefs: |
| Open the preferences panel. | |
Static Public Member Functions | |
| (MyUserPrefsController *) | + getUserPref |
| Get the singleton instance. | |
This class is a singleton object controlling the user preferences window
| + (MyUserPrefsController *) getUserPref |
| - (void) getNumericPref: | (double*) | pref | ||
| forKey: | (NSString*) | key | ||
| minValue: | (double) | minv | ||
| maxValue: | (double) | maxv | ||
Read a numeric preference with bounds.
| pref | The value to set | |
| key | The preference key | |
| minv | Minimum value | |
| maxv | Maximum value If the saved value is outside the range, it is clipped to the minimum or maximum value. |
| - (IBAction) resetPrefs: | (id) | sender |
Reset the preferences to their "factory defaults" values.
| sender | The button |
| - (IBAction) applyChanges: | (id) | sender |
Save the new preferences and leave the preferences panel open.
| sender | The button |
| - (IBAction) cancelChanges: | (id) | sender |
Close the preferences panel and discard its preferences.
| sender | The button |
| - (IBAction) confirmChanges: | (id) | sender |
Save the new preferences and close the preferences panel.
| sender | The button |
| - (IBAction) showPrefs: | (id) | sender |
Open the preferences panel.
| sender | The main menu "preferences" item |
1.5.4