From: <ho...@us...> - 2009-11-20 10:54:30
|
Revision: 16101 http://bibdesk.svn.sourceforge.net/bibdesk/?rev=16101&view=rev Author: hofman Date: 2009-11-20 10:54:18 +0000 (Fri, 20 Nov 2009) Log Message: ----------- use image for import order column Modified Paths: -------------- trunk/bibdesk/BDSKMainTableView.m Modified: trunk/bibdesk/BDSKMainTableView.m =================================================================== --- trunk/bibdesk/BDSKMainTableView.m 2009-11-20 10:33:10 UTC (rev 16100) +++ trunk/bibdesk/BDSKMainTableView.m 2009-11-20 10:54:18 UTC (rev 16101) @@ -561,7 +561,21 @@ [crossref lockFocus]; [[NSImage imageNamed:NSImageNameFollowLinkFreestandingTemplate] drawInRect:NSMakeRect(0.0, 0.0, 16.0, 16.0) fromRect:NSZeroRect operation:NSCompositeCopy fraction:1.0]; [crossref unlockFocus]; - NSMutableDictionary *tmpDict = [[NSMutableDictionary alloc] initWithObjectsAndKeys:[NSImage imageNamed:@"TinyFile"], BDSKLocalUrlString, paperclip, BDSKLocalFileString, crossref, BDSKCrossrefString, color, BDSKColorString, color, BDSKColorLabelString, nil]; + NSImage *import = [[[NSImage alloc] initWithSize:NSMakeSize(16, 16)] autorelease]; + [import lockFocus]; + NSBezierPath *p = [NSBezierPath bezierPath]; + [p moveToPoint:NSMakePoint(5.0, 13.0)]; + [p lineToPoint:NSMakePoint(11.0, 13.0)]; + [p lineToPoint:NSMakePoint(11.0, 8.0)]; + [p lineToPoint:NSMakePoint(14.0, 8.0)]; + [p lineToPoint:NSMakePoint(8.0, 2.0)]; + [p lineToPoint:NSMakePoint(2.0, 8.0)]; + [p lineToPoint:NSMakePoint(5.0, 8.0)]; + [p closePath]; + [[NSColor colorWithCalibratedWhite:0.3 alpha:1.0] setFill]; + [p fill]; + [import unlockFocus]; + NSMutableDictionary *tmpDict = [[NSMutableDictionary alloc] initWithObjectsAndKeys:[NSImage imageNamed:@"TinyFile"], BDSKLocalUrlString, paperclip, BDSKLocalFileString, crossref, BDSKCrossrefString, color, BDSKColorString, color, BDSKColorLabelString, import, BDSKImportOrderString, nil]; if (paths) { NSImage *image; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |