Revision: 4760
http://skim-app.svn.sourceforge.net/skim-app/?rev=4760&view=rev
Author: hofman
Date: 2008-10-08 11:33:05 +0000 (Wed, 08 Oct 2008)
Log Message:
-----------
allow resizing all rows in notes document
Modified Paths:
--------------
trunk/SKNotesDocument.m
Modified: trunk/SKNotesDocument.m
===================================================================
--- trunk/SKNotesDocument.m 2008-10-08 11:24:47 UTC (rev 4759)
+++ trunk/SKNotesDocument.m 2008-10-08 11:33:05 UTC (rev 4760)
@@ -541,7 +541,7 @@
- (float)outlineView:(NSOutlineView *)ov heightOfRowByItem:(id)item {
NSNumber *heightNumber = [item valueForKey:SKNotesDocumentRowHeightKey];
- return heightNumber ? [heightNumber floatValue] : [ov rowHeight] + 2.0;
+ return heightNumber ? [heightNumber floatValue] : [item
valueForKey:SKNPDFAnnotationTypeKey] ? [ov rowHeight] + 2.0 : 85.0;
}
- (void)outlineView:(NSOutlineView *)ov setHeightOfRow:(int)newHeight
byItem:(id)item {
@@ -549,7 +549,7 @@
}
- (BOOL)outlineView:(NSOutlineView *)ov canResizeRowByItem:(id)item {
- return nil != [item valueForKey:SKNotesDocumentRowHeightKey];
+ return YES;
}
- (NSString *)outlineView:(NSOutlineView *)ov toolTipForCell:(NSCell *)cell
rect:(NSRectPointer)rect tableColumn:(NSTableColumn *)tableColumn item:(id)item
mouseLocation:(NSPoint)mouseLocation {
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 Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit