Revision: 13122
http://bibdesk.svn.sourceforge.net/bibdesk/?rev=13122&view=rev
Author: hofman
Date: 2008-04-06 08:12:19 -0700 (Sun, 06 Apr 2008)
Log Message:
-----------
Implement pinch zoom event handler.
Modified Paths:
--------------
trunk/bibdesk_vendorsrc/amaxwell/FileView/FileView.m
Modified: trunk/bibdesk_vendorsrc/amaxwell/FileView/FileView.m
===================================================================
--- trunk/bibdesk_vendorsrc/amaxwell/FileView/FileView.m 2008-04-06
05:45:23 UTC (rev 13121)
+++ trunk/bibdesk_vendorsrc/amaxwell/FileView/FileView.m 2008-04-06
15:12:19 UTC (rev 13122)
@@ -2165,6 +2165,13 @@
}
}
+- (void)mouseEntered:(NSEvent *)event;
+{
+ float dz = [theEvent deltaZ];
+ dz = dz > 0 ? FVMin(0.2, dz) : FVMax(-0.2, dz);
+ [self setIconScale:FVMax(0.1, [self iconScale] + 0.5 * dz)];
+}
+
#pragma mark Drop target
- (void)setDropIndex:(NSUInteger)anIndex
dropOperation:(FVDropOperation)anOperation
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Register now and save $200. Hurry, offer ends at 11:59 p.m.,
Monday, April 7! Use priority code J8TLD2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit