Changeset 3875
- Timestamp:
- 03/04/06 17:56:18 (3 years ago)
- Files:
-
- Footagehead/trunk/English.lproj/MainMenu.nib/classes.nib (modified) (1 diff)
- Footagehead/trunk/English.lproj/MainMenu.nib/info.nib (modified) (1 diff)
- Footagehead/trunk/English.lproj/MainMenu.nib/keyedobjects.nib (modified) (previous)
- Footagehead/trunk/English.lproj/MainMenu.nib/objects.nib (modified) (previous)
- Footagehead/trunk/FHController.h (modified) (1 diff)
- Footagehead/trunk/FHController.m (modified) (4 diffs)
- Footagehead/trunk/FHTableView.m (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
Footagehead/trunk/English.lproj/MainMenu.nib/classes.nib
r3407 r3875 51 51 "_splitView" = WISplitView; 52 52 "_tableView" = WITableView; 53 "_zoomButton" = NSButton; 53 54 }; 54 55 SUPERCLASS = WIWindowController; Footagehead/trunk/English.lproj/MainMenu.nib/info.nib
r3407 r3875 21 21 </array> 22 22 <key>IBSystem Version</key> 23 <string>8 F46</string>23 <string>8H14</string> 24 24 </dict> 25 25 </plist> Footagehead/trunk/FHController.h
r3400 r3875 41 41 IBOutlet NSScrollView *_scrollView; 42 42 43 IBOutlet NSButton *_zoomButton; 43 44 IBOutlet NSButton *_revealInFinderButton; 44 45 IBOutlet NSButton *_moveToTrashButton; Footagehead/trunk/FHController.m
r3426 r3875 37 37 #import "FHImageView.h" 38 38 #import "FHSettings.h" 39 40 #ifndef CLAMP41 #define CLAMP(x, min, max) \42 (((x) > (max)) ? (max) : (((x) < (min)) ? (min) : (x)))43 #endif44 45 39 46 40 static FHController *sharedController; … … 773 767 [self setWindowFrameAutosaveName:@"Footagehead"]; 774 768 769 if([FHSettings intForKey:FHImageScaling] == NSScaleNone) 770 [_zoomButton setState:NSOnState]; 771 775 772 // --- set up fullscreen panel 776 773 [self _reloadScreens]; … … 1289 1286 index = 0; 1290 1287 step = (double) count / 10.0; 1291 step = CLAMP(step, 2, 10);1288 step = WI_CLAMP(step, 2, 10); 1292 1289 1293 1290 if((unsigned int) row > step) { … … 1322 1319 index = count - 1; 1323 1320 step = (double) count / 10.0; 1324 step = CLAMP(step, 2, 10);1321 step = WI_CLAMP(step, 2, 10); 1325 1322 1326 1323 if((unsigned int) row + step < count) { Footagehead/trunk/FHTableView.m
r3386 r3875 50 50 if((up && [scroller floatValue] > 0.0f) || (!up && [scroller floatValue] < 1.0f)) { 51 51 rect = [_imageScrollView documentVisibleRect]; 52 delta = 0. 5 * rect.size.height;52 delta = 0.75 * rect.size.height; 53 53 rect.origin.y += up ? delta : -delta; 54 54 [_imageView scrollPoint:rect.origin]; … … 121 121 (c == NSDownArrowFunctionKey && [scroller floatValue] < 1.0f)) { 122 122 rect = [_imageScrollView documentVisibleRect]; 123 delta = 0. 5 * rect.size.height;123 delta = 0.75 * rect.size.height; 124 124 rect.origin.y += (c == NSUpArrowFunctionKey) ? delta : -delta; 125 125 [_imageView scrollPoint:rect.origin]; … … 136 136 (c == NSLeftArrowFunctionKey && [scroller floatValue] > 0.0f)) { 137 137 rect = [_imageScrollView documentVisibleRect]; 138 delta = 0. 5 * rect.size.height;138 delta = 0.75 * rect.size.height; 139 139 rect.origin.x += (c == NSRightArrowFunctionKey) ? delta : -delta; 140 140 [_imageView scrollPoint:rect.origin];
