diff options
author | stuconnolly <stuart02@gmail.com> | 2009-05-27 21:51:22 +0000 |
---|---|---|
committer | stuconnolly <stuart02@gmail.com> | 2009-05-27 21:51:22 +0000 |
commit | a4d87f8e306f0959c26034a14143b9bda92d7411 (patch) | |
tree | db135f8d1adb71492ef5dc5fd5bd7c421b399427 /Source/TableDocument.m | |
parent | d47c8966ab844de8bd75446371ee59962f2e7a7e (diff) | |
download | sequelpro-a4d87f8e306f0959c26034a14143b9bda92d7411.tar.gz sequelpro-a4d87f8e306f0959c26034a14143b9bda92d7411.tar.bz2 sequelpro-a4d87f8e306f0959c26034a14143b9bda92d7411.zip |
Change the name of the 'Table Status' toolbar item to 'Table Info' and display it by default.
Diffstat (limited to 'Source/TableDocument.m')
-rw-r--r-- | Source/TableDocument.m | 17 |
1 files 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]; } |