From b2f782a22d5a37ade452ea3be6ea6f09800d127e Mon Sep 17 00:00:00 2001 From: Matthias Neeracher Date: Tue, 2 Jan 2007 07:06:56 +0000 Subject: [PATCH] Add Stop Toolbar Item --- Sources/VLSheetWindow.h | 1 + Sources/VLSheetWindow.mm | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/Sources/VLSheetWindow.h b/Sources/VLSheetWindow.h index 389e927..39d4d2c 100644 --- a/Sources/VLSheetWindow.h +++ b/Sources/VLSheetWindow.h @@ -28,6 +28,7 @@ IBOutlet id outputToolItem; IBOutlet id logToolItem; IBOutlet id playToolItem; + IBOutlet id stopToolItem; IBOutlet id zoomInToolItem; IBOutlet id zoomOutToolItem; } diff --git a/Sources/VLSheetWindow.mm b/Sources/VLSheetWindow.mm index 711ef43..65517f6 100644 --- a/Sources/VLSheetWindow.mm +++ b/Sources/VLSheetWindow.mm @@ -47,6 +47,7 @@ static NSString* sOutputToolbarItemIdentifier = @"Output Toolbar Item Identifie static NSString* sLogToolbarItemIdentifier = @"Log Toolbar Item Identifier"; static NSString* sRunToolbarItemIdentifier = @"Run Toolbar Item Identifier"; static NSString* sPlayToolbarItemIdentifier = @"Play Toolbar Item Identifier"; +static NSString* sStopToolbarItemIdentifier = @"Stop Toolbar Item Identifier"; static NSString* sZoomInToolbarItemIdentifier = @"Zoom In Toolbar Item Identifier"; static NSString* sZoomOutToolbarItemIdentifier = @"Zoom Out Toolbar Item Identifier"; @@ -92,6 +93,8 @@ static NSString* sZoomOutToolbarItemIdentifier = @"Zoom Out Toolbar Item Identif prototype = runToolItem; else if ([itemIdent isEqual: sPlayToolbarItemIdentifier]) prototype = playToolItem; + else if ([itemIdent isEqual: sStopToolbarItemIdentifier]) + prototype = stopToolItem; else if ([itemIdent isEqual: sZoomInToolbarItemIdentifier]) prototype = zoomInToolItem; else if ([itemIdent isEqual: sZoomOutToolbarItemIdentifier]) @@ -115,7 +118,9 @@ static NSString* sZoomOutToolbarItemIdentifier = @"Zoom Out Toolbar Item Identif - (NSArray *) toolbarDefaultItemIdentifiers: (NSToolbar *) toolbar { return [NSArray arrayWithObjects: sRunToolbarItemIdentifier, + NSToolbarSeparatorItemIdentifier, sPlayToolbarItemIdentifier, + sStopToolbarItemIdentifier, NSToolbarSeparatorItemIdentifier, sZoomInToolbarItemIdentifier, sZoomOutToolbarItemIdentifier, @@ -128,6 +133,7 @@ static NSString* sZoomOutToolbarItemIdentifier = @"Zoom Out Toolbar Item Identif return [NSArray arrayWithObjects: sRunToolbarItemIdentifier, sPlayToolbarItemIdentifier, + sStopToolbarItemIdentifier, sZoomInToolbarItemIdentifier, sZoomOutToolbarItemIdentifier, sOutputToolbarItemIdentifier,