aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2009-05-27 21:51:22 +0000
committerstuconnolly <stuart02@gmail.com>2009-05-27 21:51:22 +0000
commita4d87f8e306f0959c26034a14143b9bda92d7411 (patch)
treedb135f8d1adb71492ef5dc5fd5bd7c421b399427
parentd47c8966ab844de8bd75446371ee59962f2e7a7e (diff)
downloadsequelpro-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.
-rw-r--r--Source/TableDocument.m17
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];
}