From 58b3b21a7659bb97e0cc38a074ca5e3712f14ccf Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Sat, 17 Nov 2007 16:22:50 +0000 Subject: [PATCH] in Leopard add tooltips to the not-so-clear header cells in the peers and files tables --- macosx/InfoWindowController.m | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/macosx/InfoWindowController.m b/macosx/InfoWindowController.m index 46764c2ef..eaf6549ad 100644 --- a/macosx/InfoWindowController.m +++ b/macosx/InfoWindowController.m @@ -141,6 +141,24 @@ typedef enum //set file table [fFileOutline setDoubleAction: @selector(revealFile:)]; + //set table header tool tips + if ([NSApp isOnLeopardOrBetter]) + { + [[fPeerTable tableColumnWithIdentifier: @"Encryption"] setHeaderToolTip: NSLocalizedString(@"Encrypted Connection", + "inspector -> peer table -> header tool tip")]; + [[fPeerTable tableColumnWithIdentifier: @"Progress"] setHeaderToolTip: NSLocalizedString(@"Available", + "inspector -> peer table -> header tool tip")]; + [[fPeerTable tableColumnWithIdentifier: @"UL To"] setHeaderToolTip: NSLocalizedString(@"Uploading To Peer", + "inspector -> peer table -> header tool tip")]; + [[fPeerTable tableColumnWithIdentifier: @"DL From"] setHeaderToolTip: NSLocalizedString(@"Downloading From Peer", + "inspector -> peer table -> header tool tip")]; + + [[fFileOutline tableColumnWithIdentifier: @"Check"] setHeaderToolTip: NSLocalizedString(@"Download", + "inspector -> file table -> header tool tip")]; + [[fFileOutline tableColumnWithIdentifier: @"Priority"] setHeaderToolTip: NSLocalizedString(@"Priority", + "inspector -> file table -> header tool tip")]; + } + //set priority item images [fFilePriorityNormal setImage: [NSImage imageNamed: @"PriorityNormal.png"]]; [fFilePriorityLow setImage: [NSImage imageNamed: @"PriorityLow.png"]];