4 * Copyright © 2001-2003 Bernhard Baehr
6 * Preferences.h - Preferences Controller Class
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
24 #import <Cocoa/Cocoa.h>
27 #define WIRED_COLOR_KEY @"WiredColor"
28 #define ACTIVE_COLOR_KEY @"ActiveColor"
29 #define INACTIVE_COLOR_KEY @"InactiveColor"
30 #define FREE_COLOR_KEY @"FreeColor"
31 #define PAGEIN_COLOR_KEY @"PageinColor"
32 #define PAGEOUT_COLOR_KEY @"PageoutColor"
33 #define OLD_TRANSPARENCY_KEY @"Transparency" /* for backward compatibility with 1.1 prefs file */
34 #define UPDATE_FREQUENCY_KEY @"UpdateFrequency"
35 #define PAGING_SCALE_MAX_KEY @"PagingScaleMax"
36 #define PAGEIN_ATOP_PAGEOUT_KEY @"PageinAtopPageout"
37 #define SHOW_PAGING_RATE_KEY @"ShowPagingRate"
38 #define SHOW_GRAPH_WINDOW_KEY @"ShowGraphWindow"
39 #define GRAPH_WINDOW_ON_TOP_KEY @"GraphWindowOnTop"
40 #define GRAPH_WINDOW_SIZE_KEY @"GraphWindowSize"
41 #define DOCK_ICON_SIZE_KEY @"DockIconSize"
43 #define PREFERENCES_CHANGED @"PrefsChanged"
46 @interface Preferences
: NSObject
48 IBOutlet id wiredColor
;
49 IBOutlet id activeColor
;
50 IBOutlet id inactiveColor
;
51 IBOutlet id freeColor
;
52 IBOutlet id pageinColor
;
53 IBOutlet id pageoutColor
;
54 IBOutlet id pageinAtopPageout
;
55 IBOutlet id pagingScale
;
57 IBOutlet id showPagingRate
;
58 IBOutlet id updateFrequency
;
59 IBOutlet id updateFrequencySlider
;
60 IBOutlet id showGraphWindow
;
61 IBOutlet id graphWindowOnTop
;
62 IBOutlet id graphWindowSize
;
63 IBOutlet id graphWindowOptionsView
;
64 IBOutlet id dockIconSizeSlider
;
65 NSMutableDictionary
*currentSettings
;
68 - (IBAction
)showPreferences
:(id
)sender
;
69 - (IBAction
)revertToDefaults
:(id
)sender
;
70 - (IBAction
)preferencesChanged
:(id
)sender
;
71 - (void)savePreferences
;
72 - (id
)objectForKey
:(id
)key
;