- // Fill in hot key buttons
- if ([df objectForKey:@"PlayPause"]) {
- anItem = [ITKeyCombo keyComboWithPlistRepresentation:[df objectForKey:@"PlayPause"]];
- [hotKeysDictionary setObject:anItem forKey:@"PlayPause"];
- [playPauseButton setTitle:[anItem description]];
- } else {
- [hotKeysDictionary setObject:[ITKeyCombo clearKeyCombo] forKey:@"PlayPause"];
- [playPauseButton setTitle:[[ITKeyCombo clearKeyCombo] description]];
- }
-
- if ([df objectForKey:@"NextTrack"]) {
- anItem = [ITKeyCombo keyComboWithPlistRepresentation:[df objectForKey:@"NextTrack"]];
- [hotKeysDictionary setObject:anItem forKey:@"NextTrack"];
- [nextTrackButton setTitle:[anItem description]];
- } else {
- [hotKeysDictionary setObject:[ITKeyCombo clearKeyCombo] forKey:@"NextTrack"];
- [nextTrackButton setTitle:[[ITKeyCombo clearKeyCombo] description]];
- }
-
- if ([df objectForKey:@"PrevTrack"]) {
- anItem = [ITKeyCombo keyComboWithPlistRepresentation:[df objectForKey:@"PrevTrack"]];
- [hotKeysDictionary setObject:anItem forKey:@"PrevTrack"];
- [previousTrackButton setTitle:[anItem description]];
- } else {
- [hotKeysDictionary setObject:[ITKeyCombo clearKeyCombo] forKey:@"PrevTrack"];
- [previousTrackButton setTitle:[[ITKeyCombo clearKeyCombo] description]];
- }
-
- if ([df objectForKey:@"ShowPlayer"]) {
- anItem = [ITKeyCombo keyComboWithPlistRepresentation:[df objectForKey:@"ShowPlayer"]];
- [hotKeysDictionary setObject:anItem forKey:@"ShowPlayer"];
- [showPlayerButton setTitle:[anItem description]];
- } else {
- [hotKeysDictionary setObject:[ITKeyCombo clearKeyCombo] forKey:@"ShowPlayer"];
- [showPlayerButton setTitle:[[ITKeyCombo clearKeyCombo] description]];
- }
-
- if ([df objectForKey:@"TrackInfo"]) {
- anItem = [ITKeyCombo keyComboWithPlistRepresentation:[df objectForKey:@"TrackInfo"]];
- [hotKeysDictionary setObject:anItem forKey:@"TrackInfo"];
- [trackInfoButton setTitle:[anItem description]];
- } else {
- [hotKeysDictionary setObject:[ITKeyCombo clearKeyCombo] forKey:@"TrackInfo"];
- [trackInfoButton setTitle:[[ITKeyCombo clearKeyCombo] description]];
- }
-
- if ([df objectForKey:@"UpcomingSongs"]) {
- anItem = [ITKeyCombo keyComboWithPlistRepresentation:[df objectForKey:@"UpcomingSongs"]];
- [hotKeysDictionary setObject:anItem forKey:@"UpcomingSongs"];
- [upcomingSongsButton setTitle:[anItem description]];
- } else {
- [hotKeysDictionary setObject:[ITKeyCombo clearKeyCombo] forKey:@"UpcomingSongs"];
- [upcomingSongsButton setTitle:[[ITKeyCombo clearKeyCombo] description]];
- }
-
- if ([df objectForKey:@"IncrementVolume"]) {
- anItem = [ITKeyCombo keyComboWithPlistRepresentation:[df objectForKey:@"IncrementVolume"]];
- [hotKeysDictionary setObject:anItem forKey:@"IncrementVolume"];
- [volumeIncrementButton setTitle:[anItem description]];
- } else {
- [hotKeysDictionary setObject:[ITKeyCombo clearKeyCombo] forKey:@"IncrementVolume"];
- [volumeIncrementButton setTitle:[[ITKeyCombo clearKeyCombo] description]];
- }
-
- if ([df objectForKey:@"DecrementVolume"]) {
- anItem = [ITKeyCombo keyComboWithPlistRepresentation:[df objectForKey:@"DecrementVolume"]];
- [hotKeysDictionary setObject:anItem forKey:@"DecrementVolume"];
- [volumeDecrementButton setTitle:[anItem description]];
- } else {
- [hotKeysDictionary setObject:[ITKeyCombo clearKeyCombo] forKey:@"DecrementVolume"];
- [volumeDecrementButton setTitle:[[ITKeyCombo clearKeyCombo] description]];
- }
-
- if ([df objectForKey:@"IncrementRating"]) {
- anItem = [ITKeyCombo keyComboWithPlistRepresentation:[df objectForKey:@"IncrementRating"]];
- [hotKeysDictionary setObject:anItem forKey:@"IncrementRating"];
- [ratingIncrementButton setTitle:[anItem description]];
- } else {
- [hotKeysDictionary setObject:[ITKeyCombo clearKeyCombo] forKey:@"IncrementRating"];
- [ratingIncrementButton setTitle:[[ITKeyCombo clearKeyCombo] description]];
- }
-
- if ([df objectForKey:@"DecrementRating"]) {
- anItem = [ITKeyCombo keyComboWithPlistRepresentation:[df objectForKey:@"DecrementRating"]];
- [hotKeysDictionary setObject:anItem forKey:@"DecrementRating"];
- [ratingDecrementButton setTitle:[anItem description]];
- } else {
- [hotKeysDictionary setObject:[ITKeyCombo clearKeyCombo] forKey:@"DecrementRating"];
- [ratingDecrementButton setTitle:[[ITKeyCombo clearKeyCombo] description]];
- }
-
- if ([df objectForKey:@"ToggleLoop"]) {
- anItem = [ITKeyCombo keyComboWithPlistRepresentation:[df objectForKey:@"ToggleLoop"]];
- [hotKeysDictionary setObject:anItem forKey:@"ToggleLoop"];
- [toggleLoopButton setTitle:[anItem description]];
- } else {
- [hotKeysDictionary setObject:[ITKeyCombo clearKeyCombo] forKey:@"ToggleLoop"];
- [toggleLoopButton setTitle:[[ITKeyCombo clearKeyCombo] description]];
- }