Changeset 6045
- Timestamp:
- Jun 5, 2008, 2:46:39 AM (15 years ago)
- Location:
- trunk/macosx
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/macosx/Controller.m
r6033 r6045 2266 2266 NSImage * icon; 2267 2267 NSString * toolTip; 2268 switch (groupIndex) 2269 { 2270 case GROUP_FILTER_ALL_TAG: 2271 icon = [NSImage imageNamed: @"PinTemplate.png"]; 2272 toolTip = NSLocalizedString(@"All Groups", "Groups -> Button"); 2273 break; 2274 case -1: 2275 icon = [NSImage imageNamed: @"GroupsNoneTemplate.png"]; 2276 toolTip = [NSString stringWithFormat: @"%@: %@", NSLocalizedString(@"Group", "Groups -> Button"), 2277 NSLocalizedString(@"No Label", "Groups -> Button")]; 2278 break; 2279 default: 2280 icon = [[GroupsController groups] imageForIndex: groupIndex]; 2281 toolTip = [NSString stringWithFormat: @"%@: %@", NSLocalizedString(@"Group", "Groups -> Button"), 2282 [[GroupsController groups] nameForIndex: groupIndex]]; 2268 if (groupIndex == GROUP_FILTER_ALL_TAG) 2269 { 2270 icon = [NSImage imageNamed: @"PinTemplate.png"]; 2271 toolTip = NSLocalizedString(@"All Groups", "Groups -> Button"); 2272 } 2273 else 2274 { 2275 icon = [[GroupsController groups] imageForIndex: groupIndex]; 2276 NSString * groupName = groupIndex != -1 ? [[GroupsController groups] nameForIndex: groupIndex] 2277 : NSLocalizedString(@"None", "Groups -> Button"); 2278 toolTip = [NSString stringWithFormat: @"%@: %@", NSLocalizedString(@"Group", "Groups -> Button"), groupName]; 2283 2279 } 2284 2280 … … 2543 2539 - (id) outlineView: (NSOutlineView *) outlineView objectValueForTableColumn: (NSTableColumn *) tableColumn byItem: (id) item 2544 2540 { 2545 if (![item isKindOfClass: [Torrent class]]) 2541 if ([item isKindOfClass: [Torrent class]]) 2542 return [item hashString]; 2543 else 2546 2544 { 2547 2545 NSString * ident = [tableColumn identifier]; … … 2555 2553 { 2556 2554 int group = [[item objectForKey: @"Group"] intValue]; 2557 return group != -1 ? [[GroupsController groups] imageForIndex: group] 2558 : [NSImage imageNamed: @"GroupsNoneTemplate.png"]; 2555 return [[GroupsController groups] imageForIndex: group]; 2559 2556 } 2560 2557 else if ([ident isEqualToString: @"DL Image"]) … … 2592 2589 } 2593 2590 } 2594 else2595 return [item hashString];2596 2591 } 2597 2592 -
trunk/macosx/English.lproj/Localizable.strings
r6040 r6045 461 461 "No Group" = "No Group"; 462 462 463 /* Groups -> Button */464 "No Label" = "No Label";465 466 463 /* Inspector -> selected torrents */ 467 464 "No Torrents Selected" = "No Torrents Selected"; 468 465 469 /* Groups -> Menu */ 466 /* Groups -> Menu 467 Groups -> Button */ 470 468 "None" = "None"; 471 469 … … 512 510 "Open Torrent Address" = "Open Torrent Address"; 513 511 512 /* Open toolbar item -> tooltip */ 513 "Open torrent files" = "Open torrent files"; 514 514 515 /* Open toolbar item -> palette label */ 515 516 "Open Torrent Files" = "Open Torrent Files"; 516 517 /* Open toolbar item -> tooltip */518 "Open torrent files" = "Open torrent files";519 517 520 518 /* Open address toolbar item -> tooltip */ -
trunk/macosx/GroupsController.m
r5992 r6045 147 147 { 148 148 int orderIndex = [self rowValueForIndex: index]; 149 return orderIndex != -1 ? [self imageForGroup: [fGroups objectAtIndex: orderIndex]] : nil; 149 return orderIndex != -1 ? [self imageForGroup: [fGroups objectAtIndex: orderIndex]] 150 : [NSImage imageNamed: @"GroupsNoneTemplate.png"]; 150 151 } 151 152
Note: See TracChangeset
for help on using the changeset viewer.