aboutsummaryrefslogtreecommitdiffstats
path: root/Source/TablesList.m
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2009-08-02 15:52:31 +0000
committerBibiko <bibiko@eva.mpg.de>2009-08-02 15:52:31 +0000
commita0692078a97a2ff67065fd7a40c9d8490ed45ee0 (patch)
treeae60b3cd6488378c0f1b81eaed5632c9bf7f939a /Source/TablesList.m
parent865751a6154ec9c31ef73e95c5ead99682cb40fd (diff)
downloadsequelpro-a0692078a97a2ff67065fd7a40c9d8490ed45ee0.tar.gz
sequelpro-a0692078a97a2ff67065fd7a40c9d8490ed45ee0.tar.bz2
sequelpro-a0692078a97a2ff67065fd7a40c9d8490ed45ee0.zip
• button tooltip for "Show / Hide Table Information" toggles according to its status
• after editing a field in Custom Query table scroll to last selected row after data refreshing - (TODO: should be improved in near future)
Diffstat (limited to 'Source/TablesList.m')
-rw-r--r--Source/TablesList.m4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/TablesList.m b/Source/TablesList.m
index 7986ab3e..19bafc78 100644
--- a/Source/TablesList.m
+++ b/Source/TablesList.m
@@ -804,6 +804,7 @@
{
[tableListSplitView toggleCollapse:sender];
[[NSUserDefaults standardUserDefaults] setObject:[NSNumber numberWithBool:([tableInfoCollapseButton state] == NSOffState)] forKey:@"TableInformationPanelCollapsed"];
+ [tableInfoCollapseButton setToolTip:([tableInfoCollapseButton state] == NSOffState) ? NSLocalizedString(@"Show Table Information", @"Show Table Information") : NSLocalizedString(@"Hide Table Information", @"Hide Table Information")];
}
#pragma mark -
@@ -1987,9 +1988,12 @@
if ([[[NSUserDefaults standardUserDefaults] objectForKey:@"TableInformationPanelCollapsed"] boolValue]
&& [tableListSplitView collapsibleSubview]) {
[tableInfoCollapseButton setNextState];
+ [tableInfoCollapseButton setToolTip:NSLocalizedString(@"Show Table Information",@"Show Table Information")];
[tableListSplitView setValue:[NSNumber numberWithFloat:[tableListSplitView collapsibleSubview].frame.size.height] forKey:@"uncollapsedSize"];
[[tableListSplitView collapsibleSubview] setFrameSize:NSMakeSize([tableListSplitView collapsibleSubview].frame.size.width, 0)];
[tableListSplitView setCollapsibleSubviewCollapsed:YES];
+ } else {
+ [tableInfoCollapseButton setToolTip:NSLocalizedString(@"Hide Table Information",@"Hide Table Information")];
}
// Start the table filter list collapsed