Changeset 3302


Ignore:
Timestamp:
Oct 7, 2007, 2:31:36 AM (15 years ago)
Author:
livings124
Message:

show initially selected tab as selected

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/InfoWindowController.m

    r3301 r3302  
    8383    [window setAcceptsMouseMovedEvents: YES];
    8484   
     85    //set tab images and tooltips
     86    [fTabBackBar setBackgroundImage: [NSImage imageNamed: @"InfoTabBorder.tif"]];
     87    [[fTabMatrix cellWithTag: TAB_INFO_TAG] setIcon: [NSImage imageNamed: @"InfoGeneral.png"]];
     88    [[fTabMatrix cellWithTag: TAB_ACTIVITY_TAG] setIcon: nil];
     89    [[fTabMatrix cellWithTag: TAB_PEERS_TAG] setIcon: nil];
     90    [[fTabMatrix cellWithTag: TAB_FILES_TAG] setIcon: nil];
     91    [[fTabMatrix cellWithTag: TAB_OPTIONS_TAG] setIcon: [NSImage imageNamed: @"InfoOptions.png"]];
     92   
     93    [fTabMatrix setToolTip: NSLocalizedString(@"General Info", "Inspector -> tab tooltip")
     94                    forCell: [fTabMatrix cellWithTag: TAB_INFO_TAG]];
     95    [fTabMatrix setToolTip: NSLocalizedString(@"Activity", "Inspector -> tab tooltip")
     96                    forCell: [fTabMatrix cellWithTag: TAB_ACTIVITY_TAG]];
     97    [fTabMatrix setToolTip: NSLocalizedString(@"Peers", "Inspector -> tab tooltip")
     98                    forCell: [fTabMatrix cellWithTag:  TAB_PEERS_TAG]];
     99    [fTabMatrix setToolTip: NSLocalizedString(@"Files", "Inspector -> tab tooltip")
     100                    forCell: [fTabMatrix cellWithTag: TAB_FILES_TAG]];
     101    [fTabMatrix setToolTip: NSLocalizedString(@"Options", "Inspector -> tab tooltip")
     102                    forCell: [fTabMatrix cellWithTag: TAB_OPTIONS_TAG]];
     103   
    85104    //set selected tab
    86105    fCanResizeVertical = NO;
     
    105124    [fTabMatrix selectCellWithTag: tag];
    106125    [self setTab: nil];
    107    
    108     //set tab images and tooltips
    109     [fTabBackBar setBackgroundImage: [NSImage imageNamed: @"InfoTabBorder.tif"]];
    110     [[fTabMatrix cellWithTag: TAB_INFO_TAG] setIcon: [NSImage imageNamed: @"InfoGeneral.png"]];
    111     [[fTabMatrix cellWithTag: TAB_ACTIVITY_TAG] setIcon: nil];
    112     [[fTabMatrix cellWithTag: TAB_PEERS_TAG] setIcon: nil];
    113     [[fTabMatrix cellWithTag: TAB_FILES_TAG] setIcon: nil];
    114     [[fTabMatrix cellWithTag: TAB_OPTIONS_TAG] setIcon: [NSImage imageNamed: @"InfoOptions.png"]];
    115    
    116     [fTabMatrix setToolTip: NSLocalizedString(@"General Info", "Inspector -> tab tooltip")
    117                     forCell: [fTabMatrix cellWithTag: TAB_INFO_TAG]];
    118     [fTabMatrix setToolTip: NSLocalizedString(@"Activity", "Inspector -> tab tooltip")
    119                     forCell: [fTabMatrix cellWithTag: TAB_ACTIVITY_TAG]];
    120     [fTabMatrix setToolTip: NSLocalizedString(@"Peers", "Inspector -> tab tooltip")
    121                     forCell: [fTabMatrix cellWithTag:  TAB_PEERS_TAG]];
    122     [fTabMatrix setToolTip: NSLocalizedString(@"Files", "Inspector -> tab tooltip")
    123                     forCell: [fTabMatrix cellWithTag: TAB_FILES_TAG]];
    124     [fTabMatrix setToolTip: NSLocalizedString(@"Options", "Inspector -> tab tooltip")
    125                     forCell: [fTabMatrix cellWithTag: TAB_OPTIONS_TAG]];
    126126   
    127127    //initially sort peer table by IP
Note: See TracChangeset for help on using the changeset viewer.