Revision: 5425
http://skim-app.svn.sourceforge.net/skim-app/?rev=5425&view=rev
Author: hofman
Date: 2009-06-15 17:16:36 +0000 (Mon, 15 Jun 2009)
Log Message:
-----------
no need to add bool argument in sideview swapping, as it can be derived from
the view
Modified Paths:
--------------
trunk/SKMainWindowController.m
Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m 2009-06-15 16:59:51 UTC (rev 5424)
+++ trunk/SKMainWindowController.m 2009-06-15 17:16:36 UTC (rev 5425)
@@ -1579,15 +1579,15 @@
#pragma mark Swapping tables
-- (void)replaceSideView:(NSView *)newView atLeft:(BOOL)left
animate:(BOOL)animate {
+- (void)replaceSideView:(NSView *)newView animate:(BOOL)animate {
if ([newView window] == nil) {
NSView *oldView = nil;
- if (left) {
+ if (newView == noteView || newView == snapshotView) {
+ oldView = currentRightSideView;
+ currentRightSideView = newView;
+ } else {
oldView = currentLeftSideView;
currentLeftSideView = newView;
- } else {
- oldView = currentRightSideView;
- currentRightSideView = newView;
}
NSResponder *oldFirstResponder = [[oldView window] firstResponder];
@@ -1653,47 +1653,47 @@
}
- (void)displayOutlineView {
- [self replaceSideView:tocView atLeft:YES animate:NO];
+ [self replaceSideView:tocView animate:NO];
[self updateOutlineSelection];
}
- (void)fadeInOutlineView {
- [self replaceSideView:tocView atLeft:YES animate:YES];
+ [self replaceSideView:tocView animate:YES];
[self updateOutlineSelection];
}
- (void)displayThumbnailView {
- [self replaceSideView:thumbnailView atLeft:YES animate:NO];
+ [self replaceSideView:thumbnailView animate:NO];
[self updateThumbnailSelection];
}
- (void)fadeInThumbnailView {
- [self replaceSideView:thumbnailView atLeft:YES animate:YES];
+ [self replaceSideView:thumbnailView animate:YES];
[self updateThumbnailSelection];
}
- (void)displaySearchView {
- [self replaceSideView:findView atLeft:YES animate:NO];
+ [self replaceSideView:findView animate:NO];
}
- (void)fadeInSearchView {
- [self replaceSideView:findView atLeft:YES animate:YES];
+ [self replaceSideView:findView animate:YES];
}
- (void)displayGroupedSearchView {
- [self replaceSideView:groupedFindView atLeft:YES animate:NO];
+ [self replaceSideView:groupedFindView animate:NO];
}
- (void)fadeInGroupedSearchView {
- [self replaceSideView:groupedFindView atLeft:YES animate:YES];
+ [self replaceSideView:groupedFindView animate:YES];
}
- (void)displayNoteView {
- [self replaceSideView:noteView atLeft:NO animate:NO];
+ [self replaceSideView:noteView animate:NO];
}
- (void)displaySnapshotView {
- [self replaceSideView:snapshotView atLeft:NO animate:NO];
+ [self replaceSideView:snapshotView animate:NO];
[self updateSnapshotsIfNeeded];
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit