aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPConnectionControllerDelegate.m
diff options
context:
space:
mode:
authorsqlprodev <sqlprodev@northofthree.com>2012-07-05 19:02:47 +0000
committersqlprodev <sqlprodev@northofthree.com>2012-07-05 19:02:47 +0000
commit2dc02505710b3980704637e7c7647057ef3c0e14 (patch)
tree2e0790f49cd908a949d1cf5284afd33b6f18a4e2 /Source/SPConnectionControllerDelegate.m
parentd8a3650b1106fa8a4563e032e7ad66ca076da01b (diff)
downloadsequelpro-2dc02505710b3980704637e7c7647057ef3c0e14.tar.gz
sequelpro-2dc02505710b3980704637e7c7647057ef3c0e14.tar.bz2
sequelpro-2dc02505710b3980704637e7c7647057ef3c0e14.zip
A few more tweaks for SP r3710 merge with Coda
Diffstat (limited to 'Source/SPConnectionControllerDelegate.m')
-rw-r--r--Source/SPConnectionControllerDelegate.m38
1 files changed, 38 insertions, 0 deletions
diff --git a/Source/SPConnectionControllerDelegate.m b/Source/SPConnectionControllerDelegate.m
index 905e1a56..91d8ce3f 100644
--- a/Source/SPConnectionControllerDelegate.m
+++ b/Source/SPConnectionControllerDelegate.m
@@ -24,6 +24,7 @@
// More info at <http://code.google.com/p/sequel-pro/>
#import "SPConnectionControllerDelegate.h"
+#ifndef SP_REFACTOR
#import "SPFavoritesController.h"
#import "SPTableTextFieldCell.h"
#import "SPPreferenceController.h"
@@ -32,6 +33,7 @@
#import "SPFavoriteNode.h"
#import "SPGroupNode.h"
#import "SPTreeNode.h"
+#endif
static NSString *SPDatabaseImage = @"database-small";
@@ -54,6 +56,8 @@ static NSString *SPDatabaseImage = @"database-small";
#pragma mark -
#pragma mark SplitView delegate methods
+#ifndef SP_REFACTOR
+
- (NSRect)splitView:(NSSplitView *)splitView additionalEffectiveRectOfDividerAtIndex:(NSInteger)dividerIndex
{
return [connectionSplitViewButtonBar splitView:splitView additionalEffectiveRectOfDividerAtIndex:dividerIndex];
@@ -68,9 +72,13 @@ static NSString *SPDatabaseImage = @"database-small";
[databaseConnectionView setPosition:[[[connectionSplitView subviews] objectAtIndex:0] frame].size.width ofDividerAtIndex:0];
}
+#endif
+
#pragma mark -
#pragma mark Outline view delegate methods
+#ifndef SP_REFACTOR
+
- (BOOL)outlineView:(NSOutlineView *)outlineView isGroupItem:(id)item
{
return ([[(SPTreeNode *)item parentNode] parentNode] == nil);
@@ -182,9 +190,13 @@ static NSString *SPDatabaseImage = @"database-small";
[self _setNodeIsExpanded:YES fromNotification:notification];
}
+#endif
+
#pragma mark -
#pragma mark Outline view drag & drop
+#ifndef SP_REFACTOR
+
- (BOOL)outlineView:(NSOutlineView *)outlineView writeItems:(NSArray *)items toPasteboard:(NSPasteboard *)pboard
{
@@ -324,9 +336,13 @@ static NSString *SPDatabaseImage = @"database-small";
return acceptedDrop;
}
+#endif
+
#pragma mark -
#pragma mark Textfield delegate methods
+#ifndef SP_REFACTOR
+
/**
* Trap and control the 'name' field of the selected favorite. If the user pressed
* 'Add Favorite' the 'name' field is set to 'New Favorite'. If the user did not
@@ -423,9 +439,13 @@ static NSString *SPDatabaseImage = @"database-small";
return YES;
}
+#endif
+
#pragma mark -
#pragma mark Tab bar delegate methods
+#ifndef SP_REFACTOR
+
/**
* Trigger a resize action whenever the tab view changes. The connection
* detail forms are held within container views, which are of a fixed width;
@@ -454,9 +474,13 @@ static NSString *SPDatabaseImage = @"database-small";
[self _favoriteTypeDidChange];
}
+#endif
+
#pragma mark -
#pragma mark Scroll view notifications
+#ifndef SP_REFACTOR
+
/**
* As the scrollview resizes, keep the details centered within it if
* the detail frame is larger than the scrollview size; otherwise, pin
@@ -486,9 +510,13 @@ static NSString *SPDatabaseImage = @"database-small";
}
}
+#endif
+
#pragma mark -
#pragma mark Menu Validation
+#ifndef SP_REFACTOR
+
/**
* Menu item validation.
*/
@@ -549,9 +577,13 @@ static NSString *SPDatabaseImage = @"database-small";
return YES;
}
+#endif
+
#pragma mark -
#pragma mark Favorites import/export delegate methods
+#ifndef SP_REFACTOR
+
/**
* Called by the favorites exporter when the export completes.
*/
@@ -608,9 +640,13 @@ static NSString *SPDatabaseImage = @"database-small";
}
}
+#endif
+
#pragma mark -
#pragma mark Private API
+#ifndef SP_REFACTOR
+
/**
* Sets the expanded state of the node from the supplied outline view notification.
*
@@ -624,4 +660,6 @@ static NSString *SPDatabaseImage = @"database-small";
[node setNodeIsExpanded:expanded];
}
+#endif
+
@end