Changeset 1044 for trunk


Ignore:
Timestamp:
Oct 31, 2006, 7:16:15 PM (15 years ago)
Author:
livings124
Message:

bindings for minimal view and advanced bar

Location:
trunk/macosx
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.h

    r1043 r1044  
    5858    IBOutlet NSMenuItem             * fOpenIgnoreDownloadFolder;
    5959   
    60     IBOutlet NSMenuItem             * fAdvancedBarItem, * fSmallViewItem,
    61                                     * fSpeedLimitItem, * fSpeedLimitDockItem;
     60    IBOutlet NSMenuItem             * fSpeedLimitItem, * fSpeedLimitDockItem;
    6261    IBOutlet NSButton               * fActionButton, * fSpeedLimitButton;
    6362    NSImage                         * fSpeedLimitNormalImage, * fSpeedLimitBlueImage, * fSpeedLimitGraphiteImage;
  • trunk/macosx/Controller.m

    r1043 r1044  
    147147   
    148148    [fWindow setAcceptsMouseMovedEvents: YES]; //ensure filter buttons display correctly
    149    
    150     [fAdvancedBarItem setState: [fDefaults boolForKey: @"UseAdvancedBar"]];
    151149
    152150    fToolbar = [[NSToolbar alloc] initWithIdentifier: @"Transmission Toolbar"];
     
    162160    //set table size
    163161    if ([fDefaults boolForKey: @"SmallView"])
    164     {
    165162        [fTableView setRowHeight: ROW_HEIGHT_SMALL];
    166         [fSmallViewItem setState: NSOnState];
    167     }
    168163   
    169164    //window min height
     
    17191714- (void) toggleSmallView: (id) sender
    17201715{
    1721     BOOL makeSmall = ![fDefaults boolForKey: @"SmallView"];
     1716    BOOL makeSmall = [fDefaults boolForKey: @"SmallView"];
    17221717   
    17231718    [fTableView setRowHeight: makeSmall ? ROW_HEIGHT_SMALL : ROW_HEIGHT_REGULAR];
    1724     [fSmallViewItem setState: makeSmall];
    1725    
    1726     [fDefaults setBool: makeSmall forKey: @"SmallView"];
    17271719   
    17281720    //window min height
     
    18821874- (void) toggleAdvancedBar: (id) sender
    18831875{
    1884     int state = ![fAdvancedBarItem state];
    1885     [fAdvancedBarItem setState: state];
    1886     [fDefaults setBool: state forKey: @"UseAdvancedBar"];
    1887    
    18881876    [fTableView display];
    18891877}
  • trunk/macosx/English.lproj/MainMenu.nib/classes.nib

    r1035 r1044  
    4242            OUTLETS = {
    4343                fActionButton = NSButton;
    44                 fAdvancedBarItem = NSMenuItem;
    4544                fDateSortActionItem = NSMenuItem;
    4645                fDateSortItem = NSMenuItem;
     
    6665                fSearchFilterField = NSSearchField;
    6766                fSeedFilterButton = BarButton;
    68                 fSmallViewItem = NSMenuItem;
    6967                fSpeedLimitButton = NSButton;
    7068                fSpeedLimitDockItem = NSMenuItem;
  • trunk/macosx/English.lproj/MainMenu.nib/info.nib

    r1035 r1044  
    3030        <key>IBOpenObjects</key>
    3131        <array>
    32                 <integer>1041</integer>
     32                <integer>29</integer>
    3333        </array>
    3434        <key>IBSystem Version</key>
  • trunk/macosx/TorrentTableView.m

    r972 r1044  
    101101        if ([event modifierFlags] & NSAlternateKeyMask)
    102102        {
    103             [fController toggleAdvancedBar: self];
     103            [fDefaults setBool: ![fDefaults boolForKey: @"UseAdvancedBar"] forKey: @"UseAdvancedBar"];
    104104            fClickPoint = NSZeroPoint;
    105105        }
Note: See TracChangeset for help on using the changeset viewer.