Add Stop Toolbar Item

This commit is contained in:
Matthias Neeracher 2007-01-02 07:06:56 +00:00
parent 10910e809b
commit b2f782a22d
2 changed files with 7 additions and 0 deletions

View File

@ -28,6 +28,7 @@
IBOutlet id outputToolItem; IBOutlet id outputToolItem;
IBOutlet id logToolItem; IBOutlet id logToolItem;
IBOutlet id playToolItem; IBOutlet id playToolItem;
IBOutlet id stopToolItem;
IBOutlet id zoomInToolItem; IBOutlet id zoomInToolItem;
IBOutlet id zoomOutToolItem; IBOutlet id zoomOutToolItem;
} }

View File

@ -47,6 +47,7 @@ static NSString* sOutputToolbarItemIdentifier = @"Output Toolbar Item Identifie
static NSString* sLogToolbarItemIdentifier = @"Log Toolbar Item Identifier"; static NSString* sLogToolbarItemIdentifier = @"Log Toolbar Item Identifier";
static NSString* sRunToolbarItemIdentifier = @"Run Toolbar Item Identifier"; static NSString* sRunToolbarItemIdentifier = @"Run Toolbar Item Identifier";
static NSString* sPlayToolbarItemIdentifier = @"Play 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* sZoomInToolbarItemIdentifier = @"Zoom In Toolbar Item Identifier";
static NSString* sZoomOutToolbarItemIdentifier = @"Zoom Out 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; prototype = runToolItem;
else if ([itemIdent isEqual: sPlayToolbarItemIdentifier]) else if ([itemIdent isEqual: sPlayToolbarItemIdentifier])
prototype = playToolItem; prototype = playToolItem;
else if ([itemIdent isEqual: sStopToolbarItemIdentifier])
prototype = stopToolItem;
else if ([itemIdent isEqual: sZoomInToolbarItemIdentifier]) else if ([itemIdent isEqual: sZoomInToolbarItemIdentifier])
prototype = zoomInToolItem; prototype = zoomInToolItem;
else if ([itemIdent isEqual: sZoomOutToolbarItemIdentifier]) else if ([itemIdent isEqual: sZoomOutToolbarItemIdentifier])
@ -115,7 +118,9 @@ static NSString* sZoomOutToolbarItemIdentifier = @"Zoom Out Toolbar Item Identif
- (NSArray *) toolbarDefaultItemIdentifiers: (NSToolbar *) toolbar { - (NSArray *) toolbarDefaultItemIdentifiers: (NSToolbar *) toolbar {
return [NSArray arrayWithObjects: return [NSArray arrayWithObjects:
sRunToolbarItemIdentifier, sRunToolbarItemIdentifier,
NSToolbarSeparatorItemIdentifier,
sPlayToolbarItemIdentifier, sPlayToolbarItemIdentifier,
sStopToolbarItemIdentifier,
NSToolbarSeparatorItemIdentifier, NSToolbarSeparatorItemIdentifier,
sZoomInToolbarItemIdentifier, sZoomInToolbarItemIdentifier,
sZoomOutToolbarItemIdentifier, sZoomOutToolbarItemIdentifier,
@ -128,6 +133,7 @@ static NSString* sZoomOutToolbarItemIdentifier = @"Zoom Out Toolbar Item Identif
return [NSArray arrayWithObjects: return [NSArray arrayWithObjects:
sRunToolbarItemIdentifier, sRunToolbarItemIdentifier,
sPlayToolbarItemIdentifier, sPlayToolbarItemIdentifier,
sStopToolbarItemIdentifier,
sZoomInToolbarItemIdentifier, sZoomInToolbarItemIdentifier,
sZoomOutToolbarItemIdentifier, sZoomOutToolbarItemIdentifier,
sOutputToolbarItemIdentifier, sOutputToolbarItemIdentifier,