init git repo
[cpuHistory.git] / MainController.h
blobc98c56c34ef4b9e70769200023f93e266190db1a
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 "Preferences.h"
27 #import "TranslucentView.h"
28 #import "TranslucentWindow.h"
31 @interface MainController : NSObject
33 Preferences *preferences; // the preferences
34 MemInfo *memInfo; // memory usage data buffer
35 NSTimer *timer; // timer for icon refreshs
36 NSImage *displayImage; // image to be displayed (with text)
37 NSImage *graphImage; // image of the graph (w/o text) for updates
38 NSImage *iconImage; // dock icon image
39 TranslucentView *view; // view for the graph window
40 TranslucentWindow *window; // window for the graph
41 NSString *frameName; // current name for saving the window position
44 - (void)showPreferences:(id)sender;
45 - (void)showAboutBox:(id)sender;
47 @end