aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2009-11-19 10:45:00 +0000
committerBibiko <bibiko@eva.mpg.de>2009-11-19 10:45:00 +0000
commitdaa5efe61df282fe602210b5b955a7d21206bf1e (patch)
tree6fc35af636e038bded6e1a0b31517d8c19af78b8 /Source
parentcb084e21e106d6da123123b565426f2bfd7da595 (diff)
downloadsequelpro-daa5efe61df282fe602210b5b955a7d21206bf1e.tar.gz
sequelpro-daa5efe61df282fe602210b5b955a7d21206bf1e.tar.bz2
sequelpro-daa5efe61df282fe602210b5b955a7d21206bf1e.zip
• remember the spell checker status in the blob field editor
- status can be toggled by right-click in the text view and go to submenu "Spelling and Grammar" > "Check Spelling while Typing" Note: up to now "Check Spelling while Typing" wont' be checked in the GUI if it's enabled → TODO (maybe related to the "sheet issue")
Diffstat (limited to 'Source')
-rw-r--r--Source/SPConstants.h1
-rw-r--r--Source/SPConstants.m1
-rw-r--r--Source/SPFieldEditorController.m7
-rw-r--r--Source/TableDocument.m1
4 files changed, 9 insertions, 1 deletions
diff --git a/Source/SPConstants.h b/Source/SPConstants.h
index 30645a7d..221d057c 100644
--- a/Source/SPConstants.h
+++ b/Source/SPConstants.h
@@ -182,3 +182,4 @@ extern NSString *SPQueryHistory;
extern NSString *SPQueryHistoryReplacesContent;
extern NSString *SPQuickLookTypes;
extern NSString *SPTableChangedNotification;
+extern NSString *SPBlobTextEditorSpellCheckingEnabled;
diff --git a/Source/SPConstants.m b/Source/SPConstants.m
index 4c01f1d4..06e32b6d 100644
--- a/Source/SPConstants.m
+++ b/Source/SPConstants.m
@@ -126,3 +126,4 @@ NSString *SPQueryHistory = @"queryHistory";
NSString *SPQueryHistoryReplacesContent = @"QueryHistoryReplacesContent";
NSString *SPQuickLookTypes = @"QuickLookTypes";
NSString *SPTableChangedNotification = @"SPTableSelectionChanged";
+NSString *SPBlobTextEditorSpellCheckingEnabled = @"BlobTextEditorSpellCheckingEnabled";
diff --git a/Source/SPFieldEditorController.m b/Source/SPFieldEditorController.m
index 43bab67c..4df767f4 100644
--- a/Source/SPFieldEditorController.m
+++ b/Source/SPFieldEditorController.m
@@ -138,7 +138,9 @@
else {
[editTextView setFont:[NSUnarchiver unarchiveObjectWithData:[prefs dataForKey:@"FieldEditorSheetFont"]]];
}
-
+
+ [editTextView setContinuousSpellCheckingEnabled:[prefs boolForKey:SPBlobTextEditorSpellCheckingEnabled]];
+
[hexTextView setFont:[NSFont fontWithName:SPDefaultMonospacedFontName size:[NSFont smallSystemFontSize]]];
[editSheetFieldName setStringValue:[NSString stringWithFormat:@"%@: %@", NSLocalizedString(@"Field", @"Field"), fieldName]];
@@ -319,6 +321,9 @@
// For safety reasons inform QuickLook to quit
quickLookCloseMarker = 1;
+ // Remember spell cheecker status
+ [prefs setBool:[editTextView isContinuousSpellCheckingEnabled] forKey:SPBlobTextEditorSpellCheckingEnabled];
+
return ( editSheetReturnCode && isEditable ) ? [sheetEditData retain] : nil;
}
diff --git a/Source/TableDocument.m b/Source/TableDocument.m
index 78df5e16..4e0f68fc 100644
--- a/Source/TableDocument.m
+++ b/Source/TableDocument.m
@@ -70,6 +70,7 @@
- (id)init
{
+
if ((self = [super init])) {
_mainNibLoaded = NO;