w00t. I have successfully hacked NSStatusItem to look, if not act, like an NSMenuExtra.
[MenuTunes.git] / PreferencesController.h
1 /*
2  *      MenuTunes
3  *  PreferencesController
4  *    Preferences window controller
5  *
6  *  Original Author : Kent Sutherland <ksuther@ithinksw.com>
7  *   Responsibility : Kent Sutherland <ksuther@ithinksw.com>
8  *
9  *  Copyright (c) 2002 iThink Software.
10  *  All Rights Reserved
11  *
12  */
13
14
15 #import <Cocoa/Cocoa.h>
16
17 @class MenuTunes, KeyCombo;
18
19 @interface PreferencesController : NSObject
20 {
21     IBOutlet NSButton *albumCheckbox;
22     IBOutlet NSTableView *allTableView;
23     IBOutlet NSButton *artistCheckbox;
24     IBOutlet NSTextField *hotKeyTextField;
25     IBOutlet NSTextField *keyComboField;
26     IBOutlet NSPanel *keyComboPanel;
27     IBOutlet NSButton *launchAtLoginCheckbox;
28     IBOutlet NSTableView *menuTableView;
29     IBOutlet NSButton *nameCheckbox;
30     IBOutlet NSButton *nextTrackButton;
31     IBOutlet NSButton *playPauseButton;
32     IBOutlet NSButton *previousTrackButton;
33     IBOutlet NSTextField *songsInAdvance;
34     IBOutlet NSButton *trackInfoButton;
35     IBOutlet NSButton *trackTimeCheckbox;
36     IBOutlet NSButton *upcomingSongsButton;
37     IBOutlet NSWindow *window;
38     
39     MenuTunes *mt;
40     NSMutableArray *availableItems, *myItems;
41     NSArray *submenuItems;
42     
43     KeyCombo *combo, *playPauseCombo, *nextTrackCombo,
44              *prevTrackCombo, *trackInfoCombo, *upcomingSongsCombo;
45     NSString *setHotKey;
46 }
47 - (id)initWithMenuTunes:(MenuTunes *)menutunes;
48
49 - (IBAction)apply:(id)sender;
50 - (IBAction)cancel:(id)sender;
51 - (IBAction)cancelHotKey:(id)sender;
52 - (IBAction)clearHotKey:(id)sender;
53 - (IBAction)okHotKey:(id)sender;
54 - (IBAction)save:(id)sender;
55 - (IBAction)setCurrentTrackInfo:(id)sender;
56 - (IBAction)setNextTrack:(id)sender;
57 - (IBAction)setPlayPause:(id)sender;
58 - (IBAction)setPreviousTrack:(id)sender;
59 - (IBAction)setUpcomingSongs:(id)sender;
60
61 - (void)setHotKey:(NSString *)key;
62 - (void)setKeyCombo:(KeyCombo *)newCombo;
63 @end