diff options
author | Bibiko <bibiko@eva.mpg.de> | 2010-02-02 10:25:54 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2010-02-02 10:25:54 +0000 |
commit | 52b6a2b07abf9dbcf375431188fcd09aec44b60e (patch) | |
tree | 90b308b3281e4c470ba22bc449abd982e986fb50 /Source/CustomQuery.m | |
parent | 71d01e1417607aebc4254b32258c91b09078672f (diff) | |
download | sequelpro-52b6a2b07abf9dbcf375431188fcd09aec44b60e.tar.gz sequelpro-52b6a2b07abf9dbcf375431188fcd09aec44b60e.tar.bz2 sequelpro-52b6a2b07abf9dbcf375431188fcd09aec44b60e.zip |
• added key-shortcut ⌘= to make the textview size larger
• ⌘-, ⌘+, ⌘= changes the font size temporarily (Mac app conform)
• added key-shortcut ⌘0 to reset the font to pref default
• fixed search field background for Tables List
• fixed NSUInteger for completion parsing; interrupt completion if parsed string length is larger than 100000 since it doesn't make sense and leads to warnings
Diffstat (limited to 'Source/CustomQuery.m')
-rw-r--r-- | Source/CustomQuery.m | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/Source/CustomQuery.m b/Source/CustomQuery.m index d977d7de..75bbb894 100644 --- a/Source/CustomQuery.m +++ b/Source/CustomQuery.m @@ -1278,19 +1278,11 @@ // Set up the interface - [textView setAllowsDocumentBackgroundColorChange:YES]; - [customQueryView setVerticalMotionCanBeginDrag:NO]; - [textView setContinuousSpellCheckingEnabled:NO]; [autoindentMenuItem setState:([prefs boolForKey:SPCustomQueryAutoIndent]?NSOnState:NSOffState)]; - [textView setAutoindent:[prefs boolForKey:SPCustomQueryAutoIndent]]; - [textView setAutoindentIgnoresEnter:YES]; [autopairMenuItem setState:([prefs boolForKey:SPCustomQueryAutoPairCharacters]?NSOnState:NSOffState)]; - [textView setAutopair:[prefs boolForKey:SPCustomQueryAutoPairCharacters]]; [autohelpMenuItem setState:([prefs boolForKey:SPCustomQueryUpdateAutoHelp]?NSOnState:NSOffState)]; - [textView setAutohelp:[prefs boolForKey:SPCustomQueryUpdateAutoHelp]]; [autouppercaseKeywordsMenuItem setState:([prefs boolForKey:SPCustomQueryAutoUppercaseKeywords]?NSOnState:NSOffState)]; - [textView setAutouppercaseKeywords:[prefs boolForKey:SPCustomQueryAutoUppercaseKeywords]]; if ( [[SPQueryController sharedQueryController] historyForFileURL:[tableDocumentInstance fileURL]] ) { @@ -2107,18 +2099,6 @@ } } -/* - * Save the custom query editor font if it is changed. - */ -- (void)textViewDidChangeTypingAttributes:(NSNotification *)aNotification -{ - // Only save the font if prefs have been loaded, ensuring the saved font has been applied once. - // And check for [textView font] != nil which occurs while awaking from nib. - if (prefs && [textView font] != nil) - [prefs setObject:[NSArchiver archivedDataWithRootObject:[textView font]] forKey:SPCustomQueryEditorFont]; - -} - #pragma mark - #pragma mark TextField delegate methods |