X-Git-Url: http://git.ithinksw.org/MenuTunes.git/blobdiff_plain/6b8a2b55809e875bb0aadc3ab9cbab181014d1a9..780d4fc50b96f49e391ebb704716feaa5e14356c:/PreferencesController.h?ds=inline diff --git a/PreferencesController.h b/PreferencesController.h index 60fc875..97c5b92 100755 --- a/PreferencesController.h +++ b/PreferencesController.h @@ -14,41 +14,59 @@ #import -@class MainController, KeyCombo; +@class CustomMenuTableView, MainController, ITKeyCombo; @interface PreferencesController : NSObject { - IBOutlet NSButton *albumCheckbox; + IBOutlet NSButton *albumCheckbox; IBOutlet NSTableView *allTableView; - IBOutlet NSButton *artistCheckbox; - IBOutlet NSTextField *keyComboField; - IBOutlet NSPanel *keyComboPanel; - IBOutlet NSButton *launchAtLoginCheckbox; - IBOutlet NSTableView *menuTableView; - IBOutlet NSButton *nameCheckbox; - IBOutlet NSButton *nextTrackButton; - IBOutlet NSButton *playPauseButton; - IBOutlet NSButton *previousTrackButton; + IBOutlet NSPopUpButton *appearanceEffectPopup; + IBOutlet NSSlider *appearanceSpeedSlider; + IBOutlet NSButton *artistCheckbox; + IBOutlet NSTextField *clientPasswordTextField; + IBOutlet NSTextField *hostTextField; + IBOutlet NSTableView *hotKeysTableView; + IBOutlet NSButton *launchAtLoginCheckbox; + IBOutlet NSButton *launchPlayerAtLaunchCheckbox; + IBOutlet NSTextField *locationTextField; + IBOutlet NSView *manualView; + IBOutlet CustomMenuTableView *menuTableView; + IBOutlet NSButton *nameCheckbox; + IBOutlet NSTextField *nameTextField; + IBOutlet NSPanel *passwordPanel; + IBOutlet NSTextField *passwordPanelMessage; + IBOutlet NSButton *passwordPanelOKButton; + IBOutlet NSTextField *passwordPanelTextField; + IBOutlet NSTextField *passwordPanelTitle; + IBOutlet NSTextField *passwordTextField; + 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 *trackTimeCheckbox; - IBOutlet NSButton *upcomingSongsButton; - IBOutlet NSWindow *window; - + IBOutlet NSButton *trackNumberCheckbox; + IBOutlet NSButton *trackTimeCheckbox; + IBOutlet NSButton *usePasswordCheckbox; + IBOutlet NSButton *useSharedMenuTunesCheckbox; + IBOutlet NSSlider *vanishDelaySlider; + IBOutlet NSPopUpButton *vanishEffectPopup; + IBOutlet NSSlider *vanishSpeedSlider; + IBOutlet NSWindow *window; + IBOutlet NSView *zeroConfView; + MainController *controller; NSUserDefaults *df; NSMutableArray *availableItems; NSMutableArray *myItems; NSArray *submenuItems; - - KeyCombo *combo; - KeyCombo *playPauseCombo; - KeyCombo *nextTrackCombo; - KeyCombo *prevTrackCombo; - KeyCombo *trackInfoCombo; - KeyCombo *upcomingSongsCombo; - NSString *setHotKey; + NSArray *hotKeysArray, *hotKeyNamesArray; + NSMutableDictionary *hotKeysDictionary; } + (PreferencesController *)sharedPrefs; @@ -56,18 +74,19 @@ - (id)controller; - (void)setController:(id)object; -- (IBAction)showPrefsWindow:(id)sender; -- (void)registerDefaults; +- (BOOL)showPasswordPanel; +- (BOOL)showInvalidPasswordPanel; + +- (IBAction)changeGeneralSetting:(id)sender; +- (IBAction)changeSharingSetting:(id)sender; +- (IBAction)changeStatusWindowSetting:(id)sender; +- (void)resetRemotePlayerTextFields; -- (IBAction)cancelHotKey:(id)sender; - (IBAction)clearHotKey:(id)sender; -- (IBAction)okHotKey:(id)sender; -- (IBAction)setCurrentTrackInfo:(id)sender; -- (IBAction)setNextTrack:(id)sender; -- (IBAction)setPlayPause:(id)sender; -- (IBAction)setPreviousTrack:(id)sender; -- (IBAction)setUpcomingSongs:(id)sender; +- (IBAction)editHotKey:(id)sender; +- (IBAction)showPrefsWindow:(id)sender; + +- (void)registerDefaults; +- (void)deletePressedInTableView:(NSTableView *)tableView; -- (void)setHotKey:(NSString *)key; -- (void)setKeyCombo:(KeyCombo *)newCombo; @end