building again. cool. incidentally, i think it's the changes that needed to be made...
[cpuHistory.git] / MainController.h
blob2af7974dd3b4eb3b5e0beb6de391c77ea8e3d754
1 /*
2 * Memory Monitor
4 * Copyright © 2001-2003 Bernhard Baehr
6 * MainController.h - Main Application 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>
25 #import "MemInfo.h"
26 #import "CPUInfo.h"
27 #import "Preferences.h"
28 #import "TranslucentView.h"
29 #import "TranslucentWindow.h"
32 @interface MainController : NSObject
34 Preferences *preferences; // the preferences
35 MemInfo *memInfo; // memory usage data buffer
36 CPUInfo *cpuInfo; //cpu usage data buffer
37 NSTimer *timer; // timer for icon refreshs
38 NSImage *displayImage; // image to be displayed (with text)
39 NSImage *graphImage; // image of the graph (w/o text) for updates
40 NSImage *iconImage; // dock icon image
41 TranslucentView *view; // view for the graph window
42 TranslucentWindow *window; // window for the graph
43 NSString *frameName; // current name for saving the window position
46 - (void)showPreferences:(id)sender;
47 - (void)showAboutBox:(id)sender;
49 @end