Changeset 4721

Show
Ignore:
Timestamp:
04/24/07 18:44:48 (2 years ago)
Author:
morris
Message:

Blarg

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • Footagehead/trunk/English.lproj/Browser.nib/info.nib

    r4716 r4721  
    55        <key>IBDocumentLocation</key> 
    66        <string>1075 123 403 407 0 0 1920 1178 </string> 
    7         <key>IBEditorPositions</key> 
    8         <dict> 
    9                 <key>46</key> 
    10                 <string>907 405 223 118 0 0 1920 1178 </string> 
    11         </dict> 
    127        <key>IBFramework Version</key> 
    138        <string>446.1</string> 
    149        <key>IBOpenObjects</key> 
    1510        <array> 
     11                <integer>7</integer> 
     12                <integer>65</integer> 
    1613                <integer>52</integer> 
    1714                <integer>82</integer> 
    18                 <integer>65</integer> 
    19                 <integer>7</integer> 
    2015        </array> 
    2116        <key>IBSystem Version</key> 
  • Footagehead/trunk/English.lproj/Localizable.strings

    r3887 r4721  
    1717"\"%@\"" = "“%@”"; 
    1818 
    19 /* Color black */ 
    20 "Black" = "Black"; 
     19/* Actual size toolbar item */ 
     20"Actual Size" = "Actual Size"; 
    2121 
    22 /* Error message */ 
    23 "error opening image" = "error opening image"; 
    24  
    25 /* Color gray */ 
    26 "Gray" = "Gray"; 
     22/* Menu item title */ 
     23"Hide Status Bar" = "Hide Status Bar"; 
    2724 
    2825/* 'image' singular */ 
     
    3835"items" = "items"; 
    3936 
     37/* Move to trash toolbar item */ 
     38"Move To Trash" = "Move To Trash"; 
     39 
     40/* Parent toolbar item */ 
     41"Parent" = "Parent"; 
     42 
     43/* Reload toolbar item */ 
     44"Reload" = "Reload"; 
     45 
     46/* Reveal in Finder toolbar item */ 
     47"Reveal In Finder" = "Reveal In Finder"; 
     48 
     49/* Rotate left toolbar item */ 
     50"Rotate Left" = "Rotate Left"; 
     51 
     52/* Rotate right toolbar item */ 
     53"Rotate Right" = "Rotate Right"; 
     54 
    4055/* 'Screen 1, 1024x768' */ 
    4156"Screen %u, %.0fx%.0f" = "Screen %1$u, %2$.0fx%3$.0f"; 
    4257 
    43 /* Color white */ 
    44 "White" = "White"; 
     58/* Menu item title */ 
     59"Show Status Bar" = "Show Status Bar"; 
     60 
     61/* Slideshow toolbar item */ 
     62"Slideshow" = "Slideshow"; 
     63 
     64/* Stretch to fit toolbar item */ 
     65"Stretch To Fit" = "Stretch To Fit"; 
     66 
     67/* Zoom to fit toolbar item */ 
     68"Zoom To Fit" = "Zoom To Fit"; 
  • Footagehead/trunk/FHApplicationController.m

    r4718 r4721  
    225225        if(_openLastURL) { 
    226226                url = [WIURL URLWithString:[FHSettings objectForKey:FHOpenURL]]; 
    227  
     227                 
    228228                if([url isFileURL] && ![[NSFileManager defaultManager] fileExistsAtPath:[url path]]) 
    229229                        url = [WIURL fileURLWithPath:NSHomeDirectory()]; 
  • Footagehead/trunk/FHBrowserController.m

    r4719 r4721  
    302302        [_tableView reloadData]; 
    303303         
    304         if(select) 
     304        if(select) { 
    305305                [_tableView selectRow:row byExtendingSelection:NO]; 
    306         else 
     306        } else { 
    307307                [_imageLoader startLoadingImageAtIndex:row]; 
     308 
     309                [self showFile:[self selectedFile]]; 
     310        } 
    308311 
    309312        [_tableView scrollRowToVisible:row]; 
     
    889892                         
    890893                        [self _loadURL:url selectFile:name]; 
    891  
    892                         [self showFile:[self selectedFile]]; 
    893894                } 
    894895        } 
     
    10781079                [self _loadURL:url selectFile:file]; 
    10791080        } 
    1080  
    1081         [self showFile:[self selectedFile]]; 
    10821081} 
    10831082 
  • Footagehead/trunk/FHImageView.m

    r4716 r4721  
    106106                        frameSize = NSMakeSize(MAX(contentSize.width, imageSize.width), MAX(contentSize.height, imageSize.height)); 
    107107                         
    108                         [_scrollView setHasHorizontalScroller:(imageSize.width > contentSize.width)]; 
    109                         [_scrollView setHasVerticalScroller:(imageSize.height > contentSize.height)]; 
     108                        if(imageSize.width > contentSize.width) { 
     109                                [_scrollView setHasHorizontalScroller:YES]; 
     110                                frameSize.height -= [NSScroller scrollerWidth]; 
     111                                frameSize.width -= (contentSize.width / imageSize.width) * [NSScroller scrollerWidth]; 
     112                        } 
     113                         
     114                        if(imageSize.height > contentSize.height) { 
     115                                [_scrollView setHasVerticalScroller:YES]; 
     116                                frameSize.width -= [NSScroller scrollerWidth]; 
     117                                frameSize.height -= (contentSize.height / imageSize.height) * [NSScroller scrollerWidth]; 
     118                        } 
    110119                         
    111120                        [self setFrameSize:frameSize]; 
     
    305314        _dragging = YES; 
    306315 
    307         originalPoint   = [event locationInWindow]; 
    308         originalRect    = [self visibleRect]; 
    309          
    310         [[NSCursor closedHandCursor] push]; 
    311          
    312         do { 
    313                 event = [[self window] nextEventMatchingMask:NSLeftMouseUpMask | NSLeftMouseDraggedMask]; 
    314                  
    315                 if([event type] == NSLeftMouseDragged) { 
    316                         point   = [event locationInWindow]; 
    317                         x               = originalPoint.x - point.x; 
    318                         y               = originalPoint.y - point.y; 
    319                          
    320                         [self scrollRectToVisible:NSOffsetRect(originalRect, x, y)]; 
    321                 } 
    322         } while([event type] != NSLeftMouseUp); 
    323          
    324         [NSCursor pop]; 
     316        if([_scrollView hasHorizontalScroller] || [_scrollView hasVerticalScroller]) { 
     317                originalPoint   = [event locationInWindow]; 
     318                originalRect    = [self visibleRect]; 
     319                 
     320                [[NSCursor closedHandCursor] push]; 
     321                 
     322                do { 
     323                        event = [[self window] nextEventMatchingMask:NSLeftMouseUpMask | NSLeftMouseDraggedMask]; 
     324                         
     325                        if([event type] == NSLeftMouseDragged) { 
     326                                point   = [event locationInWindow]; 
     327                                x               = originalPoint.x - point.x; 
     328                                y               = originalPoint.y - point.y; 
     329                                 
     330                                [self scrollRectToVisible:NSOffsetRect(originalRect, x, y)]; 
     331                        } 
     332                } while([event type] != NSLeftMouseUp); 
     333                 
     334                [NSCursor pop]; 
     335        } 
    325336} 
    326337 
  • Footagehead/trunk/FHSpotlightHandler.m

    r4706 r4721  
    3434+ (BOOL)handlesURL:(WIURL *)url isPrimary:(BOOL)primary { 
    3535        return (primary && [[url scheme] isEqualToString:@"spotlight"]); 
     36} 
     37 
     38 
     39 
     40+ (BOOL)handlesURLAsDirectory:(WIURL *)url { 
     41        return YES; 
    3642} 
    3743 
  • Footagehead/trunk/FHZipHandler.m

    r4706 r4721  
    8888        [task setLaunchPath:@"/usr/bin/unzip"]; 
    8989        arguments = [NSMutableArray arrayWithObjects: 
     90                @"-o", 
    9091                @"-j", 
    9192                [url path],