X-Git-Url: http://git.ithinksw.org/MenuTunes.git/blobdiff_plain/d0b1fa0c62ff0b511b3a4dc2bf77bf311f2eed94..85e567aca046a76da589f1cdb3fe22354efdd187:/PreferencesController.h diff --git a/PreferencesController.h b/PreferencesController.h index a593abb..844f4ed 100755 --- a/PreferencesController.h +++ b/PreferencesController.h @@ -14,55 +14,69 @@ #import -@class MainController, KeyCombo; +@class CustomMenuTableView, MainController, ITKeyCombo; @interface PreferencesController : NSObject { + IBOutlet NSButton *albumArtworkCheckbox; IBOutlet NSButton *albumCheckbox; IBOutlet NSTableView *allTableView; + IBOutlet NSPopUpButton *appearanceEffectPopup; + IBOutlet NSSlider *appearanceSpeedSlider; IBOutlet NSButton *artistCheckbox; - IBOutlet NSTextField *keyComboField; - IBOutlet NSPanel *keyComboPanel; + IBOutlet NSPopUpButton *backgroundStylePopup; + IBOutlet NSColorWell *backgroundColorWell; + IBOutlet NSPopUpButton *backgroundColorPopup; + IBOutlet NSTextField *clientPasswordTextField; + IBOutlet NSButton *composerCheckbox; + 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 NSButton *ratingDecrementButton; - IBOutlet NSButton *ratingIncrementButton; + IBOutlet NSTextField *nameTextField; + IBOutlet NSPanel *passwordPanel; + IBOutlet NSTextField *passwordPanelMessage; + IBOutlet NSButton *passwordPanelOKButton; + IBOutlet NSTextField *passwordPanelTextField; + IBOutlet NSTextField *passwordPanelTitle; + IBOutlet NSTextField *passwordTextField; + IBOutlet NSButton *playCountCheckbox; + IBOutlet NSMatrix *positionMatrix; + IBOutlet NSButton *ratingCheckbox; + IBOutlet NSButton *runScriptsCheckbox; + 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 NSButton *showScriptsButton; IBOutlet NSTextField *songsInAdvance; - IBOutlet NSButton *toggleLoopButton; - IBOutlet NSButton *toggleShuffleButton; - IBOutlet NSButton *trackInfoButton; + IBOutlet NSButton *trackNumberCheckbox; IBOutlet NSButton *trackTimeCheckbox; - IBOutlet NSButton *upcomingSongsButton; - IBOutlet NSButton *visualizerButton; - IBOutlet NSButton *volumeDecrementButton; - IBOutlet NSButton *volumeIncrementButton; + 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; - - KeyCombo *combo; - KeyCombo *playPauseCombo; - KeyCombo *nextTrackCombo; - KeyCombo *prevTrackCombo; - KeyCombo *visualizerCombo; - KeyCombo *trackInfoCombo; - KeyCombo *upcomingSongsCombo; - KeyCombo *volumeIncrementCombo; - KeyCombo *volumeDecrementCombo; - KeyCombo *ratingIncrementCombo; - KeyCombo *ratingDecrementCombo; - KeyCombo *toggleLoopCombo; - KeyCombo *toggleShuffleCombo; + NSArray *effectClasses; - NSString *setHotKey; + NSArray *hotKeysArray, *hotKeyNamesArray; + NSMutableDictionary *hotKeysDictionary; } + (PreferencesController *)sharedPrefs; @@ -70,18 +84,19 @@ - (id)controller; - (void)setController:(id)object; -- (IBAction)showPrefsWindow:(id)sender; +- (BOOL)showPasswordPanel; +- (BOOL)showInvalidPasswordPanel; - (IBAction)changeGeneralSetting:(id)sender; +- (IBAction)changeSharingSetting:(id)sender; - (IBAction)changeStatusWindowSetting:(id)sender; -- (IBAction)changeHotKey:(id)sender; +- (void)resetRemotePlayerTextFields; -- (void)registerDefaults; - -- (IBAction)cancelHotKey:(id)sender; - (IBAction)clearHotKey:(id)sender; -- (IBAction)okHotKey:(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