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