From 5ba3df3581e79b113dcf5eb6346baf246fa49da2 Mon Sep 17 00:00:00 2001 From: Matthew Judy Date: Wed, 1 Oct 2003 15:42:22 +0000 Subject: [PATCH] Positioning and hidden ratings for radio --- MainController.m | 5 ++++- StatusWindow.m | 5 ++++- TODO.rtf | 6 ++++++ libValidate.a | Bin 8032 -> 8032 bytes 4 files changed, 14 insertions(+), 2 deletions(-) diff --git a/MainController.m b/MainController.m index 518d86f..e6d338b 100755 --- a/MainController.m +++ b/MainController.m @@ -533,7 +533,10 @@ static MainController *sharedController; } if ( [df boolForKey:@"showTrackRating"] ) { - rating = ( [currentRemote currentSongRating] * 5 ); + float currentRating = [currentRemote currentSongRating]; + if (currentRating >= 0.0) { + rating = ( currentRating * 5 ); + } } } else { diff --git a/StatusWindow.m b/StatusWindow.m index 91aba66..aa78cf1 100755 --- a/StatusWindow.m +++ b/StatusWindow.m @@ -103,7 +103,10 @@ // Setup the Window, and remove all its contentview's subviews. windowWidth = ( SW_PAD + imageWidth + SW_SPACE + dataWidth + SW_PAD ); windowHeight = ( SW_PAD + contentHeight + SW_PAD ); - [self setFrame:NSMakeRect(SW_BORDER, SW_BORDER, windowWidth, windowHeight) display:YES]; + [self setFrame:NSMakeRect( (SW_BORDER + [[self screen] visibleFrame].origin.x), + (SW_BORDER + [[self screen] visibleFrame].origin.y), + windowWidth, + windowHeight) display:YES]; [[[self contentView] subviews] makeObjectsPerformSelector:@selector(removeFromSuperview)]; // Setup, position, fill, and add the image view to the content view. diff --git a/TODO.rtf b/TODO.rtf index 86e1598..62e01a3 100755 --- a/TODO.rtf +++ b/TODO.rtf @@ -78,4 +78,10 @@ No entries yet.\ Issue: Menu - Needs to show "Space" as the key equivalent.\ \pard\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\li720\ql\qnatural \cf0 \ +\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\ql\qnatural +\cf0 Priority: FUTURE\ + Status: Future\ + Issue: Hot Keys - Need hotkey for "Show Song File".\ +\pard\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\li720\ql\qnatural +\cf0 \ } \ No newline at end of file diff --git a/libValidate.a b/libValidate.a index 3a9091b27b30acedb2436bf1d83efb1f1bdb01ed..58347788810a00b57edbe9977d2ecf49c599d9fc 100755 GIT binary patch delta 14 VcmaE0_rPv~9J8f~`9?*1c>pT{1i}CS delta 14 VcmaE0_rPv~9J7g$@kT{^c>pTE1h)VH -- 2.20.1