aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPConnectionControllerInitializer.m
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2012-08-01 00:17:54 +0000
committerrowanbeentje <rowan@beent.je>2012-08-01 00:17:54 +0000
commite6e2fe26d29659d805628114a0c1cd5f9d7ab5b4 (patch)
treedd125ddd17a68d07495d8935178f219a4e0e081a /Source/SPConnectionControllerInitializer.m
parented16bf078249b4b474a231ba487702f4f7d9a13b (diff)
downloadsequelpro-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/SPConnectionControllerInitializer.m')
-rw-r--r--Source/SPConnectionControllerInitializer.m7
1 files changed, 5 insertions, 2 deletions
diff --git a/Source/SPConnectionControllerInitializer.m b/Source/SPConnectionControllerInitializer.m
index e6f1ff71..cee0770a 100644
--- a/Source/SPConnectionControllerInitializer.m
+++ b/Source/SPConnectionControllerInitializer.m
@@ -37,6 +37,7 @@
#import "SPFavoriteNode.h"
#import "SPGroupNode.h"
#import "SPDatabaseViewController.h"
+#import "SPSplitView.h"
static NSString *SPConnectionViewNibName = @"ConnectionView";
@@ -93,9 +94,11 @@ static NSString *SPConnectionViewNibName = @"ConnectionView";
[databaseConnectionView setHidden:YES];
[connectionView setFrame:[databaseConnectionView frame]];
[databaseConnectionSuperview addSubview:connectionView];
- [connectionSplitView setPosition:[[dbDocument valueForKey:@"dbTablesTableView"] frame].size.width ofDividerAtIndex:0];
- [connectionSplitView setDelegate:self];
+ // Set up the splitview
+ [connectionSplitView setMinSize:80.f ofSubviewAtIndex:0];
+ [connectionSplitView setMinSize:445.f ofSubviewAtIndex:1];
+
// Generic folder image for use in the outline view's groups
folderImage = [[[NSWorkspace sharedWorkspace] iconForFileType:NSFileTypeForHFSTypeCode(kGenericFolderIcon)] retain];