aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPNarrowDownCompletion.h
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2010-11-30 02:24:42 +0000
committerrowanbeentje <rowan@beent.je>2010-11-30 02:24:42 +0000
commitb4a5f241c7a6adfdf1b8f4afb94f8d8c57a5c0a9 (patch)
treef1f58eb63be0f13a653b9ecd0174264e0707ffa6 /Source/SPNarrowDownCompletion.h
parentcc2e00c656a34d4c472a25f929282c8fc63d0174 (diff)
downloadsequelpro-b4a5f241c7a6adfdf1b8f4afb94f8d8c57a5c0a9.tar.gz
sequelpro-b4a5f241c7a6adfdf1b8f4afb94f8d8c57a5c0a9.tar.bz2
sequelpro-b4a5f241c7a6adfdf1b8f4afb94f8d8c57a5c0a9.zip
- Rework insertCommonPrefix to insertAutocompletePlaceholder, implementing a more Mac-like behaviour: insert a faded placeholder for the currently selected autocomplete item.
- Update the autocomplete placeholder when the autocomplete dropdown selection is changed - Clean up methods for removing placeholders, and ensure the placeholder is always removed (fixes issues with pasting with a placeholder visible, etc) - When the Help window is closed, switch off AutoHelp - this will aid in supporting those users who accidentally switch on AutoHelp and then can't figure out how to switch it off, resulting in returning windows.
Diffstat (limited to 'Source/SPNarrowDownCompletion.h')
-rw-r--r--Source/SPNarrowDownCompletion.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/SPNarrowDownCompletion.h b/Source/SPNarrowDownCompletion.h
index a158926e..b5c52f04 100644
--- a/Source/SPNarrowDownCompletion.h
+++ b/Source/SPNarrowDownCompletion.h
@@ -48,7 +48,7 @@
BOOL autoCompletionMode;
BOOL oneColumnMode;
BOOL isQueryingDatabaseStructure;
- BOOL commonPrefixWasInsertedByAutoComplete;
+ BOOL autocompletePlaceholderWasInserted;
NSMutableString *originalFilterString;
NSInteger backtickMode;
NSFont *tableFont;
@@ -81,7 +81,8 @@
isQueryingDBStructure:(BOOL)isQueryingDBStructure;
- (void)setCaretPos:(NSPoint)aPos;
- (void)insert_text:(NSString* )aString;
-- (void)insertCommonPrefix;
+- (void)insertAutocompletePlaceholder;
+- (void)removeAutocompletionPlaceholder;
- (void)adjustWorkingRangeByDelta:(NSInteger)delta;
- (void)updateSyncArrowStatus;