aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2011-04-24 10:56:52 +0000
committerstuconnolly <stuart02@gmail.com>2011-04-24 10:56:52 +0000
commit160728cd29519794b47b3a09b139ce9d604883f0 (patch)
tree395b0d792f2ccfb34946d7bf6317fdca2e4497e0 /Source
parent4611475c5b255eed9202474dd3bdee147e932946 (diff)
downloadsequelpro-160728cd29519794b47b3a09b139ce9d604883f0.tar.gz
sequelpro-160728cd29519794b47b3a09b139ce9d604883f0.tar.bz2
sequelpro-160728cd29519794b47b3a09b139ce9d604883f0.zip
Fix broken build after merge with trunk.
Diffstat (limited to 'Source')
-rw-r--r--Source/SPConnectionController.h16
-rw-r--r--Source/SPConstants.h3
-rw-r--r--Source/SPConstants.m3
-rw-r--r--Source/SPDatabaseDocument.m3
-rw-r--r--Source/SPFieldEditorController.m2
5 files changed, 14 insertions, 13 deletions
diff --git a/Source/SPConnectionController.h b/Source/SPConnectionController.h
index 2fa28019..e6d933ed 100644
--- a/Source/SPConnectionController.h
+++ b/Source/SPConnectionController.h
@@ -49,26 +49,27 @@
@end
+#endif
+
@interface SPConnectionController : NSObject
{
id <SPConnectionControllerDelegateProtocol, NSObject> delegate;
SPDatabaseDocument *dbDocument;
SPSSHTunnel *sshTunnel;
+
+#ifndef SP_REFACTOR /* ivars */
SPKeychain *keychain;
+#endif
MCPConnection *mySQLConnection;
#ifndef SP_REFACTOR /* ivars */
NSView *databaseConnectionSuperview;
NSSplitView *databaseConnectionView;
- SPKeychain *keychain;
NSUserDefaults *prefs;
NSMutableArray *favorites;
-#endif
- SPSSHTunnel *sshTunnel;
- MCPConnection *mySQLConnection;
-#ifndef SP_REFACTOR /* ivars */
+
BOOL automaticFavoriteSelection;
#endif
BOOL cancellingConnection;
@@ -161,18 +162,13 @@
IBOutlet NSMenuItem *favoritesSortByMenuItem;
BOOL isEditing;
- BOOL isConnecting;
- BOOL cancellingConnection;
BOOL reverseFavoritesSort;
#endif
-
BOOL mySQLConnectionCancelled;
- BOOL automaticFavoriteSelection;
BOOL favoriteNameFieldWasTouched;
#ifndef SP_REFACTOR /* ivars */
NSImage *folderImage;
- NSUserDefaults *prefs;
SPTreeNode *favoritesRoot;
SPFavoriteNode *currentFavorite;
diff --git a/Source/SPConstants.h b/Source/SPConstants.h
index 8e9c31b5..d1329758 100644
--- a/Source/SPConstants.h
+++ b/Source/SPConstants.h
@@ -285,6 +285,9 @@ extern NSString *SPGlobalResultTableFont;
extern NSString *SPFilterTableDefaultOperator;
extern NSString *SPFilterTableDefaultOperatorLastItems;
+// Favorites Prefpane
+extern NSString *SPFavorites;
+
// Notifications Prefpane
extern NSString *SPGrowlEnabled;
extern NSString *SPShowNoAffectedRowsError;
diff --git a/Source/SPConstants.m b/Source/SPConstants.m
index 31ac3806..d1b4bc45 100644
--- a/Source/SPConstants.m
+++ b/Source/SPConstants.m
@@ -91,6 +91,9 @@ NSString *SPGlobalResultTableFont = @"GlobalResultTableFont";
NSString *SPFilterTableDefaultOperator = @"FilterTableDefaultOperator";
NSString *SPFilterTableDefaultOperatorLastItems = @"FilterTableDefaultOperatorLastItems";
+// Favorites Prefpane
+NSString *SPFavorites = @"favorites";
+
// Notifications Prefpane
NSString *SPGrowlEnabled = @"GrowlEnabled";
NSString *SPShowNoAffectedRowsError = @"ShowNoAffectedRowsError";
diff --git a/Source/SPDatabaseDocument.m b/Source/SPDatabaseDocument.m
index 8c05daa0..d8eaa100 100644
--- a/Source/SPDatabaseDocument.m
+++ b/Source/SPDatabaseDocument.m
@@ -70,6 +70,7 @@
#ifndef SP_REFACTOR /* headers */
#import "SPBundleHTMLOutputController.h"
#import "SPConnectionDelegate.h"
+#import "SPConnectionHandler.h"
#endif
#ifdef SP_REFACTOR /* headers */
@@ -3866,7 +3867,6 @@
*/
- (void)parentTabDidClose
{
-
// Cancel autocompletion trigger
if([prefs boolForKey:SPCustomQueryAutoComplete])
[NSObject cancelPreviousPerformRequestsWithTarget:[customQueryInstance valueForKeyPath:@"textView"]
@@ -3885,7 +3885,6 @@
[createTableSyntaxWindow orderOut:nil];
[[NSNotificationCenter defaultCenter] removeObserver:self];
[self setParentWindow:nil];
-
}
/**
diff --git a/Source/SPFieldEditorController.m b/Source/SPFieldEditorController.m
index 52a90fcd..bf48ec80 100644
--- a/Source/SPFieldEditorController.m
+++ b/Source/SPFieldEditorController.m
@@ -571,7 +571,7 @@
// and suppress closing the sheet
if(sender == editSheetOkButton) {
if (maxTextLength > 0 && [[editTextView textStorage] length] > maxTextLength && ![[[editTextView textStorage] string] isEqualToString:[prefs objectForKey:SPNullValue]]) {
- [editTextView setSelectedRange:NSMakeRange(maxTextLength, [[editTextView textStorage] length] - maxTextLength)];
+ [editTextView setSelectedRange:NSMakeRange((NSUInteger)maxTextLength, [[editTextView textStorage] length] - (NSUInteger)maxTextLength)];
[editTextView scrollRangeToVisible:NSMakeRange([editTextView selectedRange].location,0)];
[SPTooltip showWithObject:[NSString stringWithFormat:NSLocalizedString(@"Text is too long. Maximum text length is set to %llu.", @"Text is too long. Maximum text length is set to %llu."), maxTextLength]];
return;