added bar width setting. sweet.
[cpuHistory.git] / Preferences.h
blob51b2f0e4a9c1d295a72ce9dab79270ca1ef3981d
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 TODO define: delete MemMon #defines
32 // define WIRED_COLOR_KEY @"WiredColor"
33 // define ACTIVE_COLOR_KEY @"ActiveColor"
34 // define INACTIVE_COLOR_KEY @"InactiveColor"
35 // define FREE_COLOR_KEY @"FreeColor"
36 //
37 // define PAGEIN_COLOR_KEY @"PageinColor"
38 // define PAGEOUT_COLOR_KEY @"PageoutColor"
39 // define PAGING_SCALE_MAX_KEY @"PagingScaleMax"
40 // define PAGEIN_ATOP_PAGEOUT_KEY @"PageinAtopPageout"
41 // define SHOW_PAGING_RATE_KEY @"ShowPagingRate"
44 CPU History
46 #define USER_COLOR_KEY @"UserColor"
47 #define SYS_COLOR_KEY @"SysColor"
48 #define NICE_COLOR_KEY @"NiceColor"
49 #define IDLE_COLOR_KEY @"IdleColor"
51 #define UPDATE_FREQUENCY_KEY @"UpdateFrequency"
52 #define SHOW_GRAPH_WINDOW_KEY @"ShowGraphWindow"
53 #define GRAPH_WINDOW_ON_TOP_KEY @"GraphWindowOnTop"
54 #define GRAPH_WINDOW_SIZE_KEY @"GraphWindowSize"
55 #define DOCK_ICON_SIZE_KEY @"DockIconSize"
56 #define BAR_WIDTH_SIZE_KEY @"BarWidthSize"
58 #define PREFERENCES_CHANGED @"PrefsChanged"
61 @interface Preferences : NSObject
64 TODO interface: remove MemMon stuff
66 /* IBOutlet id wiredColor;
67 IBOutlet id activeColor;
68 IBOutlet id inactiveColor;
69 IBOutlet id freeColor;
71 IBOutlet id pageinColor;
72 IBOutlet id pageoutColor;
73 IBOutlet id pageinAtopPageout;
74 IBOutlet id pagingScale;
75 IBOutlet id showPagingRate;
81 IBOutlet id userColor;
82 IBOutlet id sysColor;
83 IBOutlet id niceColor;
84 IBOutlet id idleColor;
86 IBOutlet id panel;
87 IBOutlet id updateFrequency;
88 IBOutlet id updateFrequencySlider;
89 IBOutlet id showGraphWindow;
90 IBOutlet id graphWindowOnTop;
91 IBOutlet id graphWindowSize;
92 IBOutlet id graphWindowOptionsView;
93 IBOutlet id dockIconSizeSlider;
94 IBOutlet id barWidthSlider;
95 NSMutableDictionary *currentSettings;
98 - (IBAction)showPreferences:(id)sender;
99 - (IBAction)revertToDefaults:(id)sender;
100 - (IBAction)preferencesChanged:(id)sender;
101 - (void)savePreferences;
102 - (id)objectForKey:(id)key;
103 - (int)windowNumber;
105 @end