aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPQueryFavoriteManager.m
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2012-08-03 00:01:13 +0000
committerrowanbeentje <rowan@beent.je>2012-08-03 00:01:13 +0000
commitb56622b7471907f6c0a09bc67a19c0ea031df23a (patch)
treeb073d729c8fe6d7ad9116badf67865b613d0ab62 /Source/SPQueryFavoriteManager.m
parentf28bdfe2032a815743c52d103c7dfbd0adcc0c63 (diff)
downloadsequelpro-b56622b7471907f6c0a09bc67a19c0ea031df23a.tar.gz
sequelpro-b56622b7471907f6c0a09bc67a19c0ea031df23a.tar.bz2
sequelpro-b56622b7471907f6c0a09bc67a19c0ea031df23a.zip
- Remove all BWToolKit views from the QueryFavoriteManager and UserManagerView, replacing with SPSplitViews and standard equivalents
Diffstat (limited to 'Source/SPQueryFavoriteManager.m')
-rw-r--r--Source/SPQueryFavoriteManager.m33
1 files changed, 5 insertions, 28 deletions
diff --git a/Source/SPQueryFavoriteManager.m b/Source/SPQueryFavoriteManager.m
index 136cd3b3..3d5a2e9a 100644
--- a/Source/SPQueryFavoriteManager.m
+++ b/Source/SPQueryFavoriteManager.m
@@ -38,10 +38,7 @@
#import "SPConnectionController.h"
#import "RegexKitLite.h"
#import "SPTextView.h"
-
-#ifndef SP_REFACTOR
-#import <BWToolkitFramework/BWAnchoredButtonBar.h>
-#endif
+#import "SPSplitView.h"
#define SP_MULTIPLE_SELECTION_PLACEHOLDER_STRING NSLocalizedString(@"[multiple selection]", @"[multiple selection]")
#define SP_NO_SELECTION_PLACEHOLDER_STRING NSLocalizedString(@"[no selection]", @"[no selection]")
@@ -98,6 +95,10 @@
@"", @"query",
nil]];
+ // Set up the split view
+ [favoritesSplitView setMinSize:152.f ofSubviewAtIndex:0];
+ [favoritesSplitView setMinSize:385.f ofSubviewAtIndex:1];
+
#ifndef SP_REFACTOR
// Build data source for global queryFavorites (as mutable copy! otherwise each
// change will be stored in the prefs at once)
@@ -135,11 +136,6 @@
// Set Remove button state
[removeButton setEnabled:([favoritesTableView numberOfSelectedRows] > 0)];
-
-#ifndef SP_REFACTOR /* split view delegate */
- // Set the button bar delegate
- [splitViewButtonBar setSplitViewDelegate:self];
-#endif
}
#pragma mark -
@@ -476,25 +472,6 @@
}
#pragma mark -
-#pragma mark SplitView delegate methods
-
-/**
- * Return the maximum possible size of the splitview.
- */
-- (CGFloat)splitView:(NSSplitView *)sender constrainMaxCoordinate:(CGFloat)proposedMax ofSubviewAt:(NSInteger)offset
-{
- return (proposedMax - 240);
-}
-
-/**
- * Return the minimum possible size of the splitview.
- */
-- (CGFloat)splitView:(NSSplitView *)sender constrainMinCoordinate:(CGFloat)proposedMin ofSubviewAt:(NSInteger)offset
-{
- return (proposedMin + 120);
-}
-
-#pragma mark -
#pragma mark TableView datasource methods
/**