Changeset 4721
- Timestamp:
- 04/24/07 18:44:48 (2 years ago)
- Files:
-
- Footagehead/trunk/English.lproj/Browser.nib/info.nib (modified) (1 diff)
- Footagehead/trunk/English.lproj/Browser.nib/keyedobjects.nib (modified) (previous)
- Footagehead/trunk/English.lproj/Localizable.strings (modified) (2 diffs)
- Footagehead/trunk/FHApplicationController.m (modified) (1 diff)
- Footagehead/trunk/FHBrowserController.m (modified) (3 diffs)
- Footagehead/trunk/FHImageView.m (modified) (2 diffs)
- Footagehead/trunk/FHSpotlightHandler.m (modified) (1 diff)
- Footagehead/trunk/FHZipHandler.m (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
Footagehead/trunk/English.lproj/Browser.nib/info.nib
r4716 r4721 5 5 <key>IBDocumentLocation</key> 6 6 <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>12 7 <key>IBFramework Version</key> 13 8 <string>446.1</string> 14 9 <key>IBOpenObjects</key> 15 10 <array> 11 <integer>7</integer> 12 <integer>65</integer> 16 13 <integer>52</integer> 17 14 <integer>82</integer> 18 <integer>65</integer>19 <integer>7</integer>20 15 </array> 21 16 <key>IBSystem Version</key> Footagehead/trunk/English.lproj/Localizable.strings
r3887 r4721 17 17 "\"%@\"" = "“%@”"; 18 18 19 /* Color black*/20 " Black" = "Black";19 /* Actual size toolbar item */ 20 "Actual Size" = "Actual Size"; 21 21 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"; 27 24 28 25 /* 'image' singular */ … … 38 35 "items" = "items"; 39 36 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 40 55 /* 'Screen 1, 1024x768' */ 41 56 "Screen %u, %.0fx%.0f" = "Screen %1$u, %2$.0fx%3$.0f"; 42 57 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 225 225 if(_openLastURL) { 226 226 url = [WIURL URLWithString:[FHSettings objectForKey:FHOpenURL]]; 227 227 228 228 if([url isFileURL] && ![[NSFileManager defaultManager] fileExistsAtPath:[url path]]) 229 229 url = [WIURL fileURLWithPath:NSHomeDirectory()]; Footagehead/trunk/FHBrowserController.m
r4719 r4721 302 302 [_tableView reloadData]; 303 303 304 if(select) 304 if(select) { 305 305 [_tableView selectRow:row byExtendingSelection:NO]; 306 else306 } else { 307 307 [_imageLoader startLoadingImageAtIndex:row]; 308 309 [self showFile:[self selectedFile]]; 310 } 308 311 309 312 [_tableView scrollRowToVisible:row]; … … 889 892 890 893 [self _loadURL:url selectFile:name]; 891 892 [self showFile:[self selectedFile]];893 894 } 894 895 } … … 1078 1079 [self _loadURL:url selectFile:file]; 1079 1080 } 1080 1081 [self showFile:[self selectedFile]];1082 1081 } 1083 1082 Footagehead/trunk/FHImageView.m
r4716 r4721 106 106 frameSize = NSMakeSize(MAX(contentSize.width, imageSize.width), MAX(contentSize.height, imageSize.height)); 107 107 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 } 110 119 111 120 [self setFrameSize:frameSize]; … … 305 314 _dragging = YES; 306 315 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 } 325 336 } 326 337 Footagehead/trunk/FHSpotlightHandler.m
r4706 r4721 34 34 + (BOOL)handlesURL:(WIURL *)url isPrimary:(BOOL)primary { 35 35 return (primary && [[url scheme] isEqualToString:@"spotlight"]); 36 } 37 38 39 40 + (BOOL)handlesURLAsDirectory:(WIURL *)url { 41 return YES; 36 42 } 37 43 Footagehead/trunk/FHZipHandler.m
r4706 r4721 88 88 [task setLaunchPath:@"/usr/bin/unzip"]; 89 89 arguments = [NSMutableArray arrayWithObjects: 90 @"-o", 90 91 @"-j", 91 92 [url path],
