Revision: 3944
          http://skim-app.svn.sourceforge.net/skim-app/?rev=3944&view=rev
Author:   hofman
Date:     2008-05-31 08:14:04 -0700 (Sat, 31 May 2008)

Log Message:
-----------
Set action for status bar only in select tool mode. Make sure underline is 
removed.

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

Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m      2008-05-31 10:03:41 UTC (rev 3943)
+++ trunk/SKMainWindowController.m      2008-05-31 15:14:04 UTC (rev 3944)
@@ -1986,7 +1986,7 @@
         [statusBar setAutoresizingMask:NSViewWidthSizable | NSViewMaxYMargin];
         [self updateLeftStatus];
         [self updateRightStatus];
-        [statusBar setRightAction:@selector(statusBarClicked:)];
+        [statusBar setRightAction:[pdfView toolMode] == SKSelectToolMode ? 
@selector(statusBarClicked:) : NULL];
         [statusBar setRightTarget:self];
     }
     [statusBar toggleBelowView:splitView offset:1.0];

Modified: trunk/SKMainWindowController_UI.m
===================================================================
--- trunk/SKMainWindowController_UI.m   2008-05-31 10:03:41 UTC (rev 3943)
+++ trunk/SKMainWindowController_UI.m   2008-05-31 15:14:04 UTC (rev 3944)
@@ -1288,6 +1288,7 @@
 
 - (void)handleToolModeChangedNotification:(NSNotification *)notification {
     [toolModeButton selectSegmentWithTag:[pdfView toolMode]];
+    [statusBar setRightAction:[pdfView toolMode] == SKSelectToolMode ? 
@selector(statusBarClicked:) : NULL];
 }
 
 - (void)handleDisplayBoxChangedNotification:(NSNotification *)notification {

Modified: trunk/SKStatusBar.m
===================================================================
--- trunk/SKStatusBar.m 2008-05-31 10:03:41 UTC (rev 3943)
+++ trunk/SKStatusBar.m 2008-05-31 15:14:04 UTC (rev 3944)
@@ -416,8 +416,12 @@
     [self getLeftFrame:&leftRect rightFrame:&rightRect];
     if ([self leftAction] != NULL)
         leftTrackingRectTag = [self addTrackingRect:leftRect owner:self 
userData:nil assumeInside:NO];
+    else
+        [leftCell setUnderlined:NO];
     if ([self rightAction] != NULL)
         rightTrackingRectTag = [self addTrackingRect:rightRect owner:self 
userData:nil assumeInside:NO];
+    else
+        [rightCell setUnderlined:NO];
 }
 
 - (void)mouseEntered:(NSEvent *)theEvent {


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: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to