updated release notes.
[cpuHistory.git] / MainController.h
blob1b81cb169706d1cd797177455d31cc285d182ca7
1 /*
2 * CPU History
3 * Christopher Bowns, 2008
4 *
5 * Formerly: Memory Monitor, by Bernhard Baehr
7 * Copyright © 2001-2003 Bernhard Baehr
9 * MainController.h - Main Application 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>
28 // import "MemInfo.h"
29 #import "CPUInfo.h"
30 #import "Preferences.h"
31 #import "TranslucentView.h"
32 #import "TranslucentWindow.h"
35 @interface MainController : NSObject
37 Preferences *preferences; // the preferences
38 // MemInfo *memInfo; // memory usage data buffer
39 CPUInfo *cpuInfo; //cpu usage data buffer
40 NSTimer *timer; // timer for icon refreshs
41 NSImage *displayImage; // image to be displayed (with text)
42 NSImage *graphImage; // image of the graph (w/o text) for updates
43 NSImage *iconImage; // dock icon image
44 TranslucentView *view; // view for the graph window
45 TranslucentWindow *window; // window for the graph
46 NSString *frameName; // current name for saving the window position
49 - (void)showPreferences:(id)sender;
50 - (void)showAboutBox:(id)sender;
52 @end