Changeset 10373


Ignore:
Timestamp:
Mar 14, 2010, 3:09:12 AM (12 years ago)
Author:
livings124
Message:

set the inspector views' titles in each view's class

Location:
trunk/macosx
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/InfoActivityViewController.m

    r10369 r10373  
    4242- (id) init
    4343{
    44     self = [super initWithNibName: @"InfoActivityView" bundle: nil];
     44    if ((self = [super initWithNibName: @"InfoActivityView" bundle: nil]))
     45    {
     46        [self setTitle: NSLocalizedString(@"Activity", "Inspector view -> title")];
     47    }
     48   
    4549    return self;
    4650}
  • trunk/macosx/InfoFileViewController.m

    r10371 r10373  
    4141- (id) init
    4242{
    43     self = [super initWithNibName: @"InfoFileView" bundle: nil];
     43    if ((self = [super initWithNibName: @"InfoFileView" bundle: nil]))
     44    {
     45        [self setTitle: NSLocalizedString(@"Files", "Inspector view -> title")];
     46    }
     47   
    4448    return self;
    4549}
  • trunk/macosx/InfoGeneralViewController.m

    r10335 r10373  
    3838- (id) init
    3939{
    40     self = [super initWithNibName: @"InfoGeneralView" bundle: nil];
     40    if ((self = [super initWithNibName: @"InfoGeneralView" bundle: nil]))
     41    {
     42        [self setTitle: NSLocalizedString(@"General Info", "Inspector view -> title")];
     43    }
     44   
    4145    return self;
    4246}
  • trunk/macosx/InfoOptionsViewController.m

    r10335 r10373  
    4646- (id) init
    4747{
    48     self = [super initWithNibName: @"InfoOptionsView" bundle: nil];
     48    if ((self = [super initWithNibName: @"InfoOptionsView" bundle: nil]))
     49    {
     50        [self setTitle: NSLocalizedString(@"Options", "Inspector view -> title")];
     51    }
     52   
    4953    return self;
    5054}
  • trunk/macosx/InfoPeersViewController.m

    r10371 r10373  
    4242- (id) init
    4343{
    44     self = [super initWithNibName: @"InfoPeersView" bundle: nil];
     44    if ((self = [super initWithNibName: @"InfoPeersView" bundle: nil]))
     45    {
     46        [self setTitle: NSLocalizedString(@"Peers", "Inspector view -> title")];
     47    }
     48   
    4549    return self;
    4650}
  • trunk/macosx/InfoTrackersViewController.m

    r10371 r10373  
    5151    if ((self = [super initWithNibName: @"InfoTrackersView" bundle: nil]))
    5252    {
     53        [self setTitle: NSLocalizedString(@"Trackers", "Inspector view -> title")];
     54       
    5355        fTrackerCell = [[TrackerCell alloc] init];
    5456    }
  • trunk/macosx/InfoWindowController.m

    r10372 r10373  
    220220   
    221221    //set new tab item
    222     #warning get titles from view controller?
    223     NSString * identifier, * title;
     222    NSString * identifier;
    224223    switch (fCurrentTabTag)
    225224    {
     
    233232            fViewController = fGeneralViewController;
    234233            identifier = TAB_INFO_IDENT;
    235             title = NSLocalizedString(@"General Info", "Inspector -> title");
    236234            break;
    237235        case TAB_ACTIVITY_TAG:
     
    244242            fViewController = fActivityViewController;
    245243            identifier = TAB_ACTIVITY_IDENT;
    246             title = NSLocalizedString(@"Activity", "Inspector -> title");
    247244            break;
    248245        case TAB_TRACKERS_TAG:
     
    255252            fViewController = fTrackersViewController;
    256253            identifier = TAB_TRACKER_IDENT;
    257             title = NSLocalizedString(@"Trackers", "Inspector -> title");
    258254            break;
    259255        case TAB_PEERS_TAG:
     
    266262            fViewController = fPeersViewController;
    267263            identifier = TAB_PEERS_IDENT;
    268             title = NSLocalizedString(@"Peers", "Inspector -> title");
    269264            break;
    270265        case TAB_FILE_TAG:
     
    277272            fViewController = fFileViewController;
    278273            identifier = TAB_FILES_IDENT;
    279             title = NSLocalizedString(@"Files", "Inspector -> title");
    280274            break;
    281275        case TAB_OPTIONS_TAG:
     
    288282            fViewController = fOptionsViewController;
    289283            identifier = TAB_OPTIONS_IDENT;
    290             title = NSLocalizedString(@"Options", "Inspector -> title");
    291284            break;
    292285        default:
     
    299292    NSWindow * window = [self window];
    300293   
    301     [window setTitle: [NSString stringWithFormat: @"%@ - %@", title, NSLocalizedString(@"Torrent Inspector", "Inspector -> title")]];
     294    [window setTitle: [NSString stringWithFormat: @"%@ - %@", [fViewController title],
     295                        NSLocalizedString(@"Torrent Inspector", "Inspector -> title")]];
    302296   
    303297    //selected tab item
Note: See TracChangeset for help on using the changeset viewer.