Changeset 641


Ignore:
Timestamp:
Jul 19, 2006, 12:24:54 AM (16 years ago)
Author:
livings124
Message:

Tooltips for show and hide filter buttons.
Disable bars when they're not visible.

Location:
trunk/macosx
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.h

    r640 r641  
    7171                                    * fSeedFilterButton, * fDownloadFilterButton;
    7272    IBOutlet NSSearchField          * fSearchFilterField;
     73    IBOutlet NSButton               * fHideFilterButton;
    7374                               
    7475    IBOutlet NSMenuItem             * fNextInfoTabItem, * fPrevInfoTabItem;
  • trunk/macosx/Controller.m

    r640 r641  
    143143    //set up filter bar
    144144    NSView * contentView = [fWindow contentView];
     145    [fHideFilterButton setToolTip: @"Hide Filter Bar"];
     146    [fFilterBar setHidden: YES];
    145147   
    146148    fFilterBarVisible = NO;
     
    156158    //set up status bar
    157159    fStatusBarVisible = NO;
     160    [fShowFilterButton setToolTip: @"Show Filter Bar"];
     161    [fStatusBar setHidden: YES];
     162   
    158163    NSRect statusBarFrame = [fStatusBar frame];
    159164    statusBarFrame.size.width = [fWindow frame].size.width;
     
    15471552        return;
    15481553
     1554    if (show)
     1555        [fStatusBar setHidden: NO];
     1556
    15491557    NSRect frame = [fWindow frame];
    15501558    float heightChange = [fStatusBar frame].size.height;
     
    15791587    [fWindow setContentMinSize: minSize];
    15801588   
     1589    if (!show)
     1590        [fStatusBar setHidden: YES];
     1591   
    15811592    //reset tracking rects for filter buttons
    15821593    [fNoFilterButton resetBounds: nil];
     
    16041615        return;
    16051616
     1617    if (show)
     1618        [fFilterBar setHidden: NO];
     1619
    16061620    NSRect frame = [fWindow frame];
    16071621    float heightChange = [fFilterBar frame].size.height;
     
    16311645    [fWindow setContentMinSize: minSize];
    16321646   
    1633     //enable/disable search field
    1634     [fSearchFilterField setEnabled: show];
    16351647    if (!show)
    1636         [fWindow makeFirstResponder: fTableView];
     1648        [fFilterBar setHidden: YES];
    16371649   
    16381650    //enable show filter button in status bar
  • trunk/macosx/English.lproj/MainMenu.nib/classes.nib

    r640 r641  
    4646                fDownloadNoLimitItem = NSMenuItem;
    4747                fFilterBar = ImageBackgroundView;
     48                fHideFilterButton = NSButton;
    4849                fNameSortItem = NSMenuItem;
    4950                fNextInfoTabItem = NSMenuItem;
  • trunk/macosx/English.lproj/MainMenu.nib/info.nib

    r640 r641  
    1010                <string>344 478 208 99 0 0 1152 842 </string>
    1111                <key>1480</key>
    12                 <string>310 355 420 63 0 0 1152 842 </string>
     12                <string>366 546 420 63 0 0 1152 842 </string>
    1313                <key>1603</key>
    14                 <string>337 544 477 67 0 0 1152 842 </string>
     14                <string>311 415 477 67 0 0 1152 842 </string>
    1515                <key>29</key>
    1616                <string>9 780 451 44 0 0 1152 842 </string>
Note: See TracChangeset for help on using the changeset viewer.