diff options
author | rowanbeentje <rowan@beent.je> | 2012-08-01 00:17:54 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2012-08-01 00:17:54 +0000 |
commit | e6e2fe26d29659d805628114a0c1cd5f9d7ab5b4 (patch) | |
tree | dd125ddd17a68d07495d8935178f219a4e0e081a /Source/SPConnectionController.m | |
parent | ed16bf078249b4b474a231ba487702f4f7d9a13b (diff) | |
download | sequelpro-e6e2fe26d29659d805628114a0c1cd5f9d7ab5b4.tar.gz sequelpro-e6e2fe26d29659d805628114a0c1cd5f9d7ab5b4.tar.bz2 sequelpro-e6e2fe26d29659d805628114a0c1cd5f9d7ab5b4.zip |
- Remove all BWToolKit elements in the connection view, replacing with standard equivalents and SPSplitView
- Replace the "Add" action menu on the connection view with two buttons for easier use and to avoid having to set up more popup buttons
- Improve SPSplitView's handling of delegates set through code
- Update localisable strings
Diffstat (limited to 'Source/SPConnectionController.m')
-rw-r--r-- | Source/SPConnectionController.m | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Source/SPConnectionController.m b/Source/SPConnectionController.m index d7aad6f7..d6078f1d 100644 --- a/Source/SPConnectionController.m +++ b/Source/SPConnectionController.m @@ -412,6 +412,20 @@ static NSComparisonResult _compareFavoritesUsingKey(id favorite1, id favorite2, [keySelectionPanel setShowsHiddenFiles:[prefs boolForKey:SPHiddenKeyFileVisibilityKey]]; } +/** + * Update the interface in response to external split view size changes. + */ +- (void)updateSplitViewSize +{ + if ([dbDocument getConnection]) { + return; + } + + [connectionSplitView setDelegate:nil]; + [connectionSplitView setPosition:[[[databaseConnectionView subviews] objectAtIndex:0] frame].size.width ofDividerAtIndex:0]; + [connectionSplitView setDelegate:self]; +} + #pragma mark - #pragma mark Connection details interaction and display |