Revision: 3289
http://skim-app.svn.sourceforge.net/skim-app/?rev=3289&view=rev
Author: hofman
Date: 2007-11-30 11:08:39 -0800 (Fri, 30 Nov 2007)
Log Message:
-----------
Set segment style on Leopard for segmented controls in toolbar.
Modified Paths:
--------------
trunk/SKMainWindowController.m
Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m 2007-11-30 18:45:24 UTC (rev 3288)
+++ trunk/SKMainWindowController.m 2007-11-30 19:08:39 UTC (rev 3289)
@@ -4529,6 +4529,8 @@
frame = [backForwardButton frame];
frame.size.height = SEGMENTED_CONTROL_HEIGHT;
[backForwardButton setFrame:frame];
+ if ([backForwardButton respondsToSelector:@selector(setSegmentStyle:)])
+ [backForwardButton setSegmentStyle:NSSegmentStyleTexturedRounded];
[item setViewWithSizes:backForwardButton];
[item setMenuFormRepresentation:menuItem];
[toolbarItems setObject:item
forKey:SKDocumentToolbarBackForwardItemIdentifier];
@@ -4567,9 +4569,13 @@
frame = [previousPageButton frame];
frame.size.height = SEGMENTED_CONTROL_HEIGHT;
[previousPageButton setFrame:frame];
+ if ([previousPageButton respondsToSelector:@selector(setSegmentStyle:)])
+ [previousPageButton setSegmentStyle:NSSegmentStyleTexturedRounded];
frame = [nextPageButton frame];
frame.size.height = SEGMENTED_CONTROL_HEIGHT;
[nextPageButton setFrame:frame];
+ if ([nextPageButton respondsToSelector:@selector(setSegmentStyle:)])
+ [nextPageButton setSegmentStyle:NSSegmentStyleTexturedRounded];
[item setViewWithSizes:pageNumberButtonsView];
[item setMenuFormRepresentation:menuItem];
[toolbarItems setObject:item
forKey:SKDocumentToolbarPageNumberButtonsItemIdentifier];
@@ -4645,6 +4651,8 @@
frame = [zoomInOutButton frame];
frame.size.height = SEGMENTED_CONTROL_HEIGHT;
[zoomInOutButton setFrame:frame];
+ if ([zoomInOutButton respondsToSelector:@selector(setSegmentStyle:)])
+ [zoomInOutButton setSegmentStyle:NSSegmentStyleTexturedRounded];
[item setViewWithSizes:zoomInOutButton];
[item setMenuFormRepresentation:menuItem];
[toolbarItems setObject:item
forKey:SKDocumentToolbarZoomInOutItemIdentifier];
@@ -4668,6 +4676,8 @@
frame = [zoomInActualOutButton frame];
frame.size.height = SEGMENTED_CONTROL_HEIGHT;
[zoomInActualOutButton setFrame:frame];
+ if ([zoomInActualOutButton respondsToSelector:@selector(setSegmentStyle:)])
+ [zoomInActualOutButton setSegmentStyle:NSSegmentStyleTexturedRounded];
[item setViewWithSizes:zoomInActualOutButton];
[item setMenuFormRepresentation:menuItem];
[toolbarItems setObject:item
forKey:SKDocumentToolbarZoomInActualOutItemIdentifier];
@@ -4862,6 +4872,8 @@
frame = [noteButton frame];
frame.size.height = SEGMENTED_CONTROL_HEIGHT;
[noteButton setFrame:frame];
+ if ([noteButton respondsToSelector:@selector(setSegmentStyle:)])
+ [noteButton setSegmentStyle:NSSegmentStyleTexturedRounded];
[item setViewWithSizes:noteButton];
[item setMenuFormRepresentation:menuItem];
[toolbarItems setObject:item
forKey:SKDocumentToolbarNewNotesItemIdentifier];
@@ -4918,6 +4930,8 @@
frame = [toolModeButton frame];
frame.size.height = SEGMENTED_CONTROL_HEIGHT;
[toolModeButton setFrame:frame];
+ if ([toolModeButton respondsToSelector:@selector(setSegmentStyle:)])
+ [toolModeButton setSegmentStyle:NSSegmentStyleTexturedRounded];
[item setViewWithSizes:toolModeButton];
[item setMenuFormRepresentation:menuItem];
[toolbarItems setObject:item
forKey:SKDocumentToolbarToolModeItemIdentifier];
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell. From the desktop to the data center, Linux is going
mainstream. Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit