Revision: 4346
          http://skim-app.svn.sourceforge.net/skim-app/?rev=4346&view=rev
Author:   hofman
Date:     2008-08-04 11:18:33 +0000 (Mon, 04 Aug 2008)

Log Message:
-----------
small improvements to side window support

Modified Paths:
--------------
    trunk/SKMainWindowController.m

Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m      2008-08-04 10:03:16 UTC (rev 4345)
+++ trunk/SKMainWindowController.m      2008-08-04 11:18:33 UTC (rev 4346)
@@ -97,6 +97,8 @@
 
 #define MULTIPLICATION_SIGN_CHARACTER 0x00d7
 
+#define PRESENTATION_SIDE_WINDOW_ALPHA 0.95
+
 NSString *SKMainWindowPageLabelsKey = @"pageLabels";
 NSString *SKMainWindowSearchResultsKey = @"searchResults";
 NSString *SKMainWindowGroupedSearchResultsKey = @"groupedSearchResults";
@@ -2301,7 +2303,7 @@
         savedLeftSidePaneState = [self leftSidePaneState];
         [self setLeftSidePaneState:SKThumbnailSidePaneState];
         [leftSideWindow setLevel:[[self window] level] + 1];
-        [leftSideWindow setAlphaValue:0.95];
+        [leftSideWindow setAlphaValue:PRESENTATION_SIDE_WINDOW_ALPHA];
         [leftSideWindow setEnabled:NO];
         [leftSideWindow makeFirstResponder:thumbnailTableView];
         [leftSideWindow expand];
@@ -2327,15 +2329,14 @@
     }
     
     if ([self isPresentation]) {
-        [rightSideWindow expand];
         [leftSideWindow setLevel:[[self window] level] + 1];
-        [leftSideWindow setAlphaValue:0.95];
+        [leftSideWindow setAlphaValue:PRESENTATION_SIDE_WINDOW_ALPHA];
         [leftSideWindow setEnabled:NO];
+        [rightSideWindow expand];
     } else {
         [rightSideWindow collapse];
+        [rightSideWindow orderFront:self];
     }
-    
-    [rightSideWindow orderFront:self];
 }
 
 - (void)hideLeftSideWindow {


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

Reply via email to