X-Git-Url: http://git.ithinksw.org/MenuTunes.git/blobdiff_plain/6e879de483fcc0349bb3720d1eb8ae74dc6d3803..72525936e39908832152b4d81c58d4b40994d7a7:/PreferencesController.h?ds=sidebyside diff --git a/PreferencesController.h b/PreferencesController.h index de0955c..58b97e5 100755 --- a/PreferencesController.h +++ b/PreferencesController.h @@ -6,7 +6,7 @@ * Original Author : Kent Sutherland * Responsibility : Kent Sutherland * - * Copyright (c) 2002 The iThink Group. + * Copyright (c) 2002 iThink Software. * All Rights Reserved * */ @@ -14,50 +14,86 @@ #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 *hotKeyTextField; - IBOutlet NSTextField *keyComboField; - IBOutlet NSPanel *keyComboPanel; + IBOutlet NSPopUpButton *backgroundStylePopup; + IBOutlet NSColorWell *backgroundColorWell; + IBOutlet NSPopUpButton *backgroundColorPopup; + IBOutlet NSTextField *clientPasswordTextField; + IBOutlet NSTextField *hostTextField; + IBOutlet NSTableView *hotKeysTableView; IBOutlet NSButton *launchAtLoginCheckbox; - IBOutlet NSTableView *menuTableView; + IBOutlet NSButton *launchPlayerAtLaunchCheckbox; + IBOutlet NSTextField *locationTextField; + IBOutlet NSView *manualView; + IBOutlet CustomMenuTableView *menuTableView; IBOutlet NSButton *nameCheckbox; - IBOutlet NSButton *nextTrackButton; - IBOutlet NSButton *playPauseButton; - IBOutlet NSButton *previousTrackButton; + IBOutlet NSTextField *nameTextField; + IBOutlet NSPanel *passwordPanel; + IBOutlet NSTextField *passwordPanelMessage; + IBOutlet NSButton *passwordPanelOKButton; + IBOutlet NSTextField *passwordPanelTextField; + IBOutlet NSTextField *passwordPanelTitle; + IBOutlet NSTextField *passwordTextField; + IBOutlet NSMatrix *positionMatrix; + IBOutlet NSButton *ratingCheckbox; + IBOutlet NSTextField *selectedPlayerTextField; + IBOutlet NSBox *selectPlayerBox; + IBOutlet NSPanel *selectPlayerSheet; + IBOutlet NSButton *selectSharedPlayerButton; + IBOutlet NSButton *shareMenuTunesCheckbox; + IBOutlet NSButton *sharingPanelOKButton; + IBOutlet NSTableView *sharingTableView; + IBOutlet NSButton *showOnChangeCheckbox; IBOutlet NSTextField *songsInAdvance; - IBOutlet NSButton *trackInfoButton; + IBOutlet NSButton *trackNumberCheckbox; IBOutlet NSButton *trackTimeCheckbox; - IBOutlet NSButton *upcomingSongsButton; + IBOutlet NSButton *usePasswordCheckbox; + IBOutlet NSButton *useSharedMenuTunesCheckbox; + IBOutlet NSSlider *vanishDelaySlider; + IBOutlet NSPopUpButton *vanishEffectPopup; + IBOutlet NSSlider *vanishSpeedSlider; IBOutlet NSWindow *window; + IBOutlet NSPopUpButton *windowSizingPopup; + IBOutlet NSView *zeroConfView; + + MainController *controller; + NSUserDefaults *df; + NSMutableArray *availableItems; + NSMutableArray *myItems; + NSArray *submenuItems; + NSArray *effectClasses; - MenuTunes *mt; - NSMutableArray *availableItems, *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; + +- (BOOL)showPasswordPanel; +- (BOOL)showInvalidPasswordPanel; + +- (IBAction)changeGeneralSetting:(id)sender; +- (IBAction)changeSharingSetting:(id)sender; +- (IBAction)changeStatusWindowSetting:(id)sender; +- (void)resetRemotePlayerTextFields; + - (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; +- (IBAction)showTestWindow:(id)sender; + +- (void)registerDefaults; +- (void)deletePressedInTableView:(NSTableView *)tableView; + @end