Changeset 2811


Ignore:
Timestamp:
Aug 17, 2007, 1:23:17 AM (15 years ago)
Author:
livings124
Message:

again by popular demand, allow peers and files tabs to be resized vertically

Location:
trunk/macosx
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/InfoWindowController.m

    r2794 r2811  
    699699    [self updateInfoStats];
    700700   
     701    BOOL canResizeHor = NO;
    701702    float height;
    702703    if ([identifier isEqualToString: TAB_ACTIVITY_IDENT])
     
    706707    }
    707708    else if ([identifier isEqualToString: TAB_PEERS_IDENT])
     709    {
    708710        height = TAB_PEERS_HEIGHT;
     711        canResizeHor = YES;
     712    }
    709713    else if ([identifier isEqualToString: TAB_FILES_IDENT])
     714    {
    710715        height = TAB_FILES_HEIGHT;
     716        canResizeHor = YES;
     717    }
    711718    else if ([identifier isEqualToString: TAB_OPTIONS_IDENT])
    712719        height = TAB_OPTIONS_HEIGHT;
     
    732739   
    733740    [window setMinSize: NSMakeSize([window minSize].width, frame.size.height)];
    734     [window setMaxSize: NSMakeSize([window maxSize].width, frame.size.height)];
     741    [window setMaxSize: NSMakeSize([window maxSize].width, canResizeHor ? FLT_MAX : frame.size.height)];
    735742}
    736743
  • trunk/macosx/TorrentTableView.m

    r2810 r2811  
    391391- (void) checkFile: (id) sender
    392392{
    393     NSIndexSet * indexes = [[sender representedObject] objectForKey: @"Indexes"];
    394     [fMenuTorrent setFileCheckState: [sender state] != NSOnState ? NSOnState : NSOffState forIndexes: indexes];
     393    #warning get working
     394    NSIndexSet * indexSet;
     395    if ([[NSApp currentEvent] modifierFlags] & NSAlternateKeyMask)
     396        indexSet = [NSIndexSet indexSetWithIndexesInRange: NSMakeRange(0, [fMenuTorrent fileCount])];
     397    else
     398        indexSet = [[sender representedObject] objectForKey: @"Indexes"];
     399   
     400    [fMenuTorrent setFileCheckState: [sender state] != NSOnState ? NSOnState : NSOffState forIndexes: indexSet];
    395401   
    396402    [[NSNotificationCenter defaultCenter] postNotificationName: @"UpdateStats" object: nil];
Note: See TracChangeset for help on using the changeset viewer.