mirror of
https://github.com/transmission/transmission
synced 2024-12-27 18:18:10 +00:00
show initially selected tab as selected
This commit is contained in:
parent
973ed82609
commit
4887259081
1 changed files with 19 additions and 19 deletions
|
@ -82,6 +82,25 @@ typedef enum
|
||||||
[window setBecomesKeyOnlyIfNeeded: YES];
|
[window setBecomesKeyOnlyIfNeeded: YES];
|
||||||
[window setAcceptsMouseMovedEvents: YES];
|
[window setAcceptsMouseMovedEvents: YES];
|
||||||
|
|
||||||
|
//set tab images and tooltips
|
||||||
|
[fTabBackBar setBackgroundImage: [NSImage imageNamed: @"InfoTabBorder.tif"]];
|
||||||
|
[[fTabMatrix cellWithTag: TAB_INFO_TAG] setIcon: [NSImage imageNamed: @"InfoGeneral.png"]];
|
||||||
|
[[fTabMatrix cellWithTag: TAB_ACTIVITY_TAG] setIcon: nil];
|
||||||
|
[[fTabMatrix cellWithTag: TAB_PEERS_TAG] setIcon: nil];
|
||||||
|
[[fTabMatrix cellWithTag: TAB_FILES_TAG] setIcon: nil];
|
||||||
|
[[fTabMatrix cellWithTag: TAB_OPTIONS_TAG] setIcon: [NSImage imageNamed: @"InfoOptions.png"]];
|
||||||
|
|
||||||
|
[fTabMatrix setToolTip: NSLocalizedString(@"General Info", "Inspector -> tab tooltip")
|
||||||
|
forCell: [fTabMatrix cellWithTag: TAB_INFO_TAG]];
|
||||||
|
[fTabMatrix setToolTip: NSLocalizedString(@"Activity", "Inspector -> tab tooltip")
|
||||||
|
forCell: [fTabMatrix cellWithTag: TAB_ACTIVITY_TAG]];
|
||||||
|
[fTabMatrix setToolTip: NSLocalizedString(@"Peers", "Inspector -> tab tooltip")
|
||||||
|
forCell: [fTabMatrix cellWithTag: TAB_PEERS_TAG]];
|
||||||
|
[fTabMatrix setToolTip: NSLocalizedString(@"Files", "Inspector -> tab tooltip")
|
||||||
|
forCell: [fTabMatrix cellWithTag: TAB_FILES_TAG]];
|
||||||
|
[fTabMatrix setToolTip: NSLocalizedString(@"Options", "Inspector -> tab tooltip")
|
||||||
|
forCell: [fTabMatrix cellWithTag: TAB_OPTIONS_TAG]];
|
||||||
|
|
||||||
//set selected tab
|
//set selected tab
|
||||||
fCanResizeVertical = NO;
|
fCanResizeVertical = NO;
|
||||||
fCurrentTabTag = INVALID;
|
fCurrentTabTag = INVALID;
|
||||||
|
@ -105,25 +124,6 @@ typedef enum
|
||||||
[fTabMatrix selectCellWithTag: tag];
|
[fTabMatrix selectCellWithTag: tag];
|
||||||
[self setTab: nil];
|
[self setTab: nil];
|
||||||
|
|
||||||
//set tab images and tooltips
|
|
||||||
[fTabBackBar setBackgroundImage: [NSImage imageNamed: @"InfoTabBorder.tif"]];
|
|
||||||
[[fTabMatrix cellWithTag: TAB_INFO_TAG] setIcon: [NSImage imageNamed: @"InfoGeneral.png"]];
|
|
||||||
[[fTabMatrix cellWithTag: TAB_ACTIVITY_TAG] setIcon: nil];
|
|
||||||
[[fTabMatrix cellWithTag: TAB_PEERS_TAG] setIcon: nil];
|
|
||||||
[[fTabMatrix cellWithTag: TAB_FILES_TAG] setIcon: nil];
|
|
||||||
[[fTabMatrix cellWithTag: TAB_OPTIONS_TAG] setIcon: [NSImage imageNamed: @"InfoOptions.png"]];
|
|
||||||
|
|
||||||
[fTabMatrix setToolTip: NSLocalizedString(@"General Info", "Inspector -> tab tooltip")
|
|
||||||
forCell: [fTabMatrix cellWithTag: TAB_INFO_TAG]];
|
|
||||||
[fTabMatrix setToolTip: NSLocalizedString(@"Activity", "Inspector -> tab tooltip")
|
|
||||||
forCell: [fTabMatrix cellWithTag: TAB_ACTIVITY_TAG]];
|
|
||||||
[fTabMatrix setToolTip: NSLocalizedString(@"Peers", "Inspector -> tab tooltip")
|
|
||||||
forCell: [fTabMatrix cellWithTag: TAB_PEERS_TAG]];
|
|
||||||
[fTabMatrix setToolTip: NSLocalizedString(@"Files", "Inspector -> tab tooltip")
|
|
||||||
forCell: [fTabMatrix cellWithTag: TAB_FILES_TAG]];
|
|
||||||
[fTabMatrix setToolTip: NSLocalizedString(@"Options", "Inspector -> tab tooltip")
|
|
||||||
forCell: [fTabMatrix cellWithTag: TAB_OPTIONS_TAG]];
|
|
||||||
|
|
||||||
//initially sort peer table by IP
|
//initially sort peer table by IP
|
||||||
if ([[fPeerTable sortDescriptors] count] == 0)
|
if ([[fPeerTable sortDescriptors] count] == 0)
|
||||||
[fPeerTable setSortDescriptors: [NSArray arrayWithObject: [[fPeerTable tableColumnWithIdentifier: @"IP"]
|
[fPeerTable setSortDescriptors: [NSArray arrayWithObject: [[fPeerTable tableColumnWithIdentifier: @"IP"]
|
||||||
|
|
Loading…
Reference in a new issue