X-Git-Url: http://git.ithinksw.org/MenuTunes.git/blobdiff_plain/93f1f93114865d18b5870f04763c921ff33b8e59..b392de720df0cb5b7c0aa95e0b519059a676c233:/PreferencesController.h?ds=sidebyside diff --git a/PreferencesController.h b/PreferencesController.h index f1e3be7..109d9e7 100755 --- a/PreferencesController.h +++ b/PreferencesController.h @@ -1,52 +1,65 @@ -/* PreferencesController */ +/* + * MenuTunes + * PreferencesController + * Preferences window controller + * + * Original Author : Kent Sutherland + * Responsibility : Kent Sutherland + * + * Copyright (c) 2002 iThink Software. + * All Rights Reserved + * + */ + #import -@class MenuTunes, KeyCombo; +@class CustomMenuTableView, MainController, ITKeyCombo; @interface PreferencesController : NSObject { IBOutlet NSButton *albumCheckbox; IBOutlet NSTableView *allTableView; + IBOutlet NSPopUpButton *appearanceEffectPopup; + IBOutlet NSSlider *appearanceSpeedSlider; IBOutlet NSButton *artistCheckbox; - IBOutlet NSTextField *keyComboField; - IBOutlet NSPanel *keyComboPanel; - IBOutlet NSTableView *menuTableView; + IBOutlet NSTableView *hotKeysTableView; + IBOutlet NSButton *launchAtLoginCheckbox; + IBOutlet NSButton *launchPlayerAtLaunchCheckbox; + IBOutlet CustomMenuTableView *menuTableView; IBOutlet NSButton *nameCheckbox; - IBOutlet NSButton *nextTrackButton; - IBOutlet NSButton *playPauseButton; - IBOutlet NSButton *previousTrackButton; - IBOutlet NSButton *songRatingCheckbox; + IBOutlet NSButton *ratingCheckbox; + IBOutlet NSButton *showOnChangeCheckbox; IBOutlet NSTextField *songsInAdvance; - IBOutlet NSButton *trackInfoButton; IBOutlet NSButton *trackNumberCheckbox; IBOutlet NSButton *trackTimeCheckbox; - IBOutlet NSButton *upcomingSongsButton; + IBOutlet NSSlider *vanishDelaySlider; + IBOutlet NSPopUpButton *vanishEffectPopup; + IBOutlet NSSlider *vanishSpeedSlider; IBOutlet NSWindow *window; - IBOutlet NSButton *yearCheckbox; - - MenuTunes *mt; - NSMutableArray *availableItems, *myItems; - NSArray *submenuItems; + + MainController *controller; + NSUserDefaults *df; + NSMutableArray *availableItems; + NSMutableArray *myItems; + NSArray *submenuItems; - KeyCombo *combo, *playPauseCombo, *nextTrackCombo, - *prevTrackCombo, *trackInfoCombo, *upcomingSongsCombo; - NSString *setHotKey; + NSArray *hotKeysArray, *hotKeyNamesArray; + NSMutableDictionary *hotKeysDictionary; } -- (id)initWithMenuTunes:(MenuTunes *)menutunes; -- (IBAction)apply:(id)sender; -- (IBAction)cancel:(id)sender; -- (IBAction)cancelHotKey:(id)sender; ++ (PreferencesController *)sharedPrefs; + +- (id)controller; +- (void)setController:(id)object; + +- (IBAction)changeGeneralSetting:(id)sender; +- (IBAction)changeStatusWindowSetting:(id)sender; - (IBAction)clearHotKey:(id)sender; -- (IBAction)okHotKey:(id)sender; -- (IBAction)save:(id)sender; -- (IBAction)setCurrentTrackInfo:(id)sender; -- (IBAction)setNextTrack:(id)sender; -- (IBAction)setPlayPause:(id)sender; -- (IBAction)setPreviousTrack:(id)sender; -- (IBAction)setUpcomingSongs:(id)sender; - -- (void)setHotKey:(NSString *)key; -- (void)setKeyCombo:(KeyCombo *)newCombo; +- (IBAction)editHotKey:(id)sender; +- (IBAction)showPrefsWindow:(id)sender; + +- (void)registerDefaults; +- (void)deletePressedInTableView:(NSTableView *)tableView; + @end