From a4d87f8e306f0959c26034a14143b9bda92d7411 Mon Sep 17 00:00:00 2001 From: stuconnolly Date: Wed, 27 May 2009 21:51:22 +0000 Subject: Change the name of the 'Table Status' toolbar item to 'Table Info' and display it by default. --- Source/TableDocument.m | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/Source/TableDocument.m b/Source/TableDocument.m index aedf9d34..ff13096d 100644 --- a/Source/TableDocument.m +++ b/Source/TableDocument.m @@ -1661,7 +1661,7 @@ NSString *TableDocumentFavoritesControllerSelectionIndexDidChange = @"TableDocum } [tableTabView selectTabViewItemAtIndex:3]; - [mainToolbar setSelectedItemIdentifier:@"SwitchToTableStatusToolbarItemIdentifier"]; + [mainToolbar setSelectedItemIdentifier:@"SwitchToTableInfoToolbarItemIdentifier"]; } - (IBAction)viewRelations:(id)sender @@ -1681,7 +1681,7 @@ NSString *TableDocumentFavoritesControllerSelectionIndexDidChange = @"TableDocum } [tableTabView selectTabViewItemAtIndex:4]; - [mainToolbar setSelectedItemIdentifier:@"SwitchToTableStatusToolbarItemIdentifier"]; + [mainToolbar setSelectedItemIdentifier:@"SwitchToTableInfoToolbarItemIdentifier"]; } @@ -1828,11 +1828,11 @@ NSString *TableDocumentFavoritesControllerSelectionIndexDidChange = @"TableDocum [toolbarItem setTarget:self]; [toolbarItem setAction:@selector(viewQuery:)]; - } else if ([itemIdentifier isEqualToString:@"SwitchToTableStatusToolbarItemIdentifier"]) { - [toolbarItem setLabel:NSLocalizedString(@"Table Status", @"toolbar item label for switching to the Table Status tab")]; - [toolbarItem setPaletteLabel:NSLocalizedString(@"Table Status", @"toolbar item label for switching to the Table Status tab")]; + } else if ([itemIdentifier isEqualToString:@"SwitchToTableInfoToolbarItemIdentifier"]) { + [toolbarItem setLabel:NSLocalizedString(@"Table Info", @"toolbar item label for switching to the Table Info tab")]; + [toolbarItem setPaletteLabel:NSLocalizedString(@"Table Info", @"toolbar item label for switching to the Table Info tab")]; //set up tooltip and image - [toolbarItem setToolTip:NSLocalizedString(@"Switch to the Table Status tab", @"tooltip for toolbar item for switching to the Table Status tab")]; + [toolbarItem setToolTip:NSLocalizedString(@"Switch to the Table Info tab", @"tooltip for toolbar item for switching to the Table Info tab")]; [toolbarItem setImage:[NSImage imageNamed:@"toolbar-switch-to-table-info"]]; //set up the target action [toolbarItem setTarget:self]; @@ -1859,7 +1859,7 @@ NSString *TableDocumentFavoritesControllerSelectionIndexDidChange = @"TableDocum @"SwitchToTableStructureToolbarItemIdentifier", @"SwitchToTableContentToolbarItemIdentifier", @"SwitchToRunQueryToolbarItemIdentifier", - @"SwitchToTableStatusToolbarItemIdentifier", + @"SwitchToTableInfoToolbarItemIdentifier", NSToolbarCustomizeToolbarItemIdentifier, NSToolbarFlexibleSpaceItemIdentifier, NSToolbarSpaceItemIdentifier, @@ -1878,6 +1878,7 @@ NSString *TableDocumentFavoritesControllerSelectionIndexDidChange = @"TableDocum @"SwitchToTableStructureToolbarItemIdentifier", @"SwitchToTableContentToolbarItemIdentifier", @"SwitchToRunQueryToolbarItemIdentifier", + @"SwitchToTableInfoToolbarItemIdentifier", NSToolbarFlexibleSpaceItemIdentifier, nil]; } @@ -1891,7 +1892,7 @@ NSString *TableDocumentFavoritesControllerSelectionIndexDidChange = @"TableDocum @"SwitchToTableStructureToolbarItemIdentifier", @"SwitchToTableContentToolbarItemIdentifier", @"SwitchToRunQueryToolbarItemIdentifier", - @"SwitchToTableStatusToolbarItemIdentifier", + @"SwitchToTableInfoToolbarItemIdentifier", nil]; } -- cgit v1.2.3