Revision: 4616
http://skim-app.svn.sourceforge.net/skim-app/?rev=4616&view=rev
Author: hofman
Date: 2008-09-12 18:19:46 +0000 (Fri, 12 Sep 2008)
Log Message:
-----------
Implement initial expansion of open outline items in the controller
Modified Paths:
--------------
trunk/SKMainWindowController.m
trunk/SKTocOutlineView.m
Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m 2008-09-12 12:50:58 UTC (rev 4615)
+++ trunk/SKMainWindowController.m 2008-09-12 18:19:46 UTC (rev 4616)
@@ -675,6 +675,11 @@
updatingOutlineSelection = YES;
// If this is a reload following a TeX run and the user just killed the
outline for some reason, we get a crash if the outlineView isn't reloaded, so
no longer make it conditional on pdfOutline != nil
[outlineView reloadData];
+ for (i = 0; i < (unsigned int)[outlineView numberOfRows]; i++) {
+ SKPDFOutline *outline = [outlineView itemAtRow:i];
+ if ([outline isOpen])
+ [outlineView expandItem:outline];
+ }
updatingOutlineSelection = NO;
[self updateOutlineSelection];
Modified: trunk/SKTocOutlineView.m
===================================================================
--- trunk/SKTocOutlineView.m 2008-09-12 12:50:58 UTC (rev 4615)
+++ trunk/SKTocOutlineView.m 2008-09-12 18:19:46 UTC (rev 4616)
@@ -165,12 +165,6 @@
- (void)reloadData{
[super reloadData];
- int i;
- for (i = 0; i < [self numberOfRows]; i++) {
- id item = [self itemAtRow:i];
- if ([item respondsToSelector:@selector(isOpen)] && [item
isOpen])
- [self expandItem:item];
- }
[self rebuildTrackingRects];
}
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