From: Matthew Judy Date: Sun, 23 Nov 2003 10:43:01 +0000 (+0000) Subject: Intermediary checkin, just to mark my place and back up, in case Panther decides... X-Git-Tag: v1.2~29 X-Git-Url: http://git.ithinksw.org/MenuTunes.git/commitdiff_plain/01755ec0d1d9e0d49d003bd3029162388b720cda Intermediary checkin, just to mark my place and back up, in case Panther decides to be an ass again. --- diff --git a/English.lproj/Preferences.nib/keyedobjects.nib b/English.lproj/Preferences.nib/keyedobjects.nib index df26ca3..1aa5ea5 100755 Binary files a/English.lproj/Preferences.nib/keyedobjects.nib and b/English.lproj/Preferences.nib/keyedobjects.nib differ diff --git a/PreferencesController.m b/PreferencesController.m index a17c1b3..9690e0b 100755 --- a/PreferencesController.m +++ b/PreferencesController.m @@ -10,6 +10,8 @@ #import #import +#import + #import #import #import @@ -17,6 +19,7 @@ #import #import +#import #import #import #import @@ -36,6 +39,7 @@ - (void)setupCustomizationTables; - (void)setupMenuItems; - (void)setupUI; +- (NSArray *)effectNamesFromDictionary:(NSDictionary *)infoDict; - (void)setCustomColor:(NSColor *)color updateWell:(BOOL)update; - (IBAction)changeMenus:(id)sender; - (void)setLaunchesAtLogin:(BOOL)flag; @@ -510,13 +514,13 @@ static PreferencesController *prefs = nil; nil] forKey:@"menu"]; [df setInteger:5 forKey:@"SongsInAdvance"]; - // [df setBool:YES forKey:@"showName"]; // Song info will always show song title. +// [df setBool:YES forKey:@"showName"]; // Song info will always show song title. [df setBool:YES forKey:@"showArtist"]; [df setBool:NO forKey:@"showAlbum"]; [df setBool:NO forKey:@"showTime"]; - [df setInteger:2100 forKey:@"statusWindowAppearanceEffect"]; - [df setInteger:2101 forKey:@"statusWindowVanishEffect"]; + [df setObject:@"ITCutWindowEffect" forKey:@"statusWindowAppearanceEffect"]; + [df setObject:@"ITDissolveWindowEffect" forKey:@"statusWindowVanishEffect"]; [df setFloat:0.8 forKey:@"statusWindowAppearanceSpeed"]; [df setFloat:0.8 forKey:@"statusWindowVanishSpeed"]; [df setFloat:4.0 forKey:@"statusWindowVanishDelay"]; @@ -732,9 +736,12 @@ static PreferencesController *prefs = nil; { NSMutableDictionary *loginwindow; NSMutableArray *loginarray; - NSEnumerator *loginEnum, *keyArrayEnum; - NSString *serverName; - NSData *colorData; + NSEnumerator *loginEnum; + NSEnumerator *keyArrayEnum; + NSString *serverName; + NSData *colorData; + NSArray *effectClasses = [ITWindowEffect effectClasses]; +// NSEnumerator *effectEnum = [effectList objectEnumerator]; int selectedBGStyle; id anItem; @@ -784,6 +791,16 @@ static PreferencesController *prefs = nil; // Setup the positioning controls // Setup effects controls + // Populate the effects popups + [appearanceEffectPopup removeItemAtIndex:0]; + [vanishEffectPopup removeItemAtIndex:0]; + [appearanceEffectPopup addItemsWithTitles:[[effectList allValues] objectsForKey:@"Name"]]; // category method + [vanishEffectPopup addItemsWithTitles:[[effectList allValues] objectsForKey:@"Name"]]; // category method + + // Attempt to find the pref'd effect in the list. + // If it's not there, use cut/dissolve. + + [appearanceEffectPopup selectItem:[appearanceEffectPopup itemAtIndex:[appearanceEffectPopup indexOfItemWithTag:[df integerForKey:@"statusWindowAppearanceEffect"]]]]; [vanishEffectPopup selectItem:[vanishEffectPopup itemAtIndex:[vanishEffectPopup indexOfItemWithTag:[df integerForKey:@"statusWindowVanishEffect"]]]]; [appearanceSpeedSlider setFloatValue:-([df floatForKey:@"statusWindowAppearanceSpeed"])]; @@ -791,7 +808,6 @@ static PreferencesController *prefs = nil; [vanishDelaySlider setFloatValue:[df floatForKey:@"statusWindowVanishDelay"]]; // Setup General Controls - selectedBGStyle = [df integerForKey:@"statusWindowBackgroundMode"]; [backgroundStylePopup selectItem:[backgroundStylePopup itemAtIndex:[backgroundStylePopup indexOfItemWithTag:selectedBGStyle]]]; @@ -855,6 +871,11 @@ static PreferencesController *prefs = nil; } } +- (NSArray *)effectNamesFromDictionary:(NSDictionary *)infoDict +{ + +} + - (IBAction)changeMenus:(id)sender { ITDebugLog(@"Synchronizing menus"); diff --git a/StatusWindow.m b/StatusWindow.m index 01c6ef4..3465be3 100755 --- a/StatusWindow.m +++ b/StatusWindow.m @@ -129,6 +129,9 @@ // Setup the Window, and remove all its contentview's subviews. windowWidth = ( (SW_PAD / divisor) + imageWidth + (SW_SPACE / divisor) + dataWidth + (SW_PAD / divisor) ); windowHeight = ( (SW_PAD / divisor) + contentHeight + (SW_PAD / divisor) ); + +#warning Adjust frame for positioning here. + [self setFrame:NSMakeRect( (SW_BORDER + [[self screen] visibleFrame].origin.x), (SW_BORDER + [[self screen] visibleFrame].origin.y), windowWidth, diff --git a/libValidate.a b/libValidate.a index 94c5394..8245865 100755 Binary files a/libValidate.a and b/libValidate.a differ