{
NSStatusItem *statusItem;
NSMenu *menu;
-// MenuTunesView *view;
ComponentInstance asComponent;
//Used in updating the menu automatically
*/
#import "MenuTunes.h"
-// #import "MenuTunesView.h"
#import "PreferencesController.h"
#import "HotKeyCenter.h"
#import "StatusWindowController.h"
// Below line of code is for creating builds for Beta Testers
// [statusItem setToolTip:@"This Nontransferable Beta (Built on __DATE__) of iThink Software's MenuTunes is Registered to: Beta Tester (betatester@somedomain.com)."];
[statusItem retain];
-// view = [[MenuTunesView alloc] initWithFrame:[[statusItem view] frame]];
-// [statusItem setView:view];
}
+++ /dev/null
-/*
- * MenuTunes
- * MenuTunesView
- * App Controller Class
- *
- * Original Author : Kent Sutherland <ksuther@ithinksw.com>
- * Responsibility : Kent Sutherland <ksuther@ithinksw.com>
- * Contributors : Matt Judy <matt@nibfile.com>
- *
- * Copyright (c) 2002 iThink Software.
- * All Rights Reserved
- *
- */
-
-
-#import <AppKit/AppKit.h>
-
-@interface MenuTunesView : NSView
-{
- NSImage *image;
- NSImage *altImage;
- BOOL mouseIsPressed;
-}
-
-@end
+++ /dev/null
-#import "MenuTunesView.h"
-
-extern NSColor* _NSGetThemePartColorPattern(int, int, int);
-
-@implementation MenuTunesView
-
-- (id)initWithFrame:(NSRect)frame
-{
- if ( (self = [super initWithFrame:frame]) )
- {
- image = [NSImage imageNamed:@"menu"];
- altImage = [NSImage imageNamed:@"selected_image"];
- mouseIsPressed = NO;
- }
- return self;
-}
-
-- (void)drawRect:(NSRect)rect
-{
- NSImage *icon;
- NSColor *background;
-
- if ( mouseIsPressed ) {
- icon = altImage;
- background = _NSGetThemePartColorPattern(44, 2, 0);
- } else {
- icon = image;
- background = [NSColor clearColor];
- }
- [background set];
- NSRectFill(rect);
- [icon compositeToPoint:NSMakePoint(((rect.size.width - [icon size].width) / 2), 0)
- operation:NSCompositeSourceOver];
-}
-
-- (void)mouseDown:(NSEvent *)event
-{
- mouseIsPressed = YES;
- [self setNeedsDisplay:YES];
- [super mouseDown:event];
-}
-
-- (void)mouseUp:(NSEvent *)event
-{
- mouseIsPressed = NO;
- [self setNeedsDisplay:YES];
- [super mouseUp:event];
-}
-
-@end