Permalink
Browse files

Reformat SPNarrowDownCompletion class

  • Loading branch information...
dmoagx committed May 30, 2018
1 parent 86aaa25 commit 720bb5f2339ed8085f8aadf2630610fee1d6f400
Showing with 254 additions and 231 deletions.
  1. +31 −18 Source/SPNarrowDownCompletion.h
  2. +223 −213 Source/SPNarrowDownCompletion.m
@@ -34,12 +34,12 @@
@interface SPNarrowDownCompletion : NSWindow <NSTableViewDelegate, NSTableViewDataSource>
{
NSArray* suggestions;
NSMutableString* mutablePrefix;
NSString* staticPrefix;
NSString* currentDb;
NSArray* filtered;
NSTableView* theTableView;
NSArray *suggestions;
NSMutableString *mutablePrefix;
NSString *staticPrefix;
NSString *currentDb;
NSArray *filtered;
NSTableView *theTableView;
NSPoint caretPos;
BOOL isAbove;
BOOL closeMe;
@@ -70,33 +70,46 @@
NSUInteger timeCounter;
id theView;
NSInteger maxWindowWidth;
NSInteger spaceCounter;
NSMutableCharacterSet* textualInputCharacters;
NSMutableCharacterSet *textualInputCharacters;
SPDatabaseStructure *databaseStructureRetrieval;
#ifndef SP_CODA
NSUserDefaults *prefs;
#endif
}
- (id)initWithItems:(NSArray*)someSuggestions alreadyTyped:(NSString*)aUserString staticPrefix:(NSString*)aStaticPrefix
additionalWordCharacters:(NSString*)someAdditionalWordCharacters caseSensitive:(BOOL)isCaseSensitive
charRange:(NSRange)initRange parseRange:(NSRange)parseRange inView:(id)aView
dictMode:(BOOL)mode dbMode:(BOOL)theDbMode tabTriggerMode:(BOOL)tabTriggerMode fuzzySearch:(BOOL)fuzzySearch
backtickMode:(NSInteger)theBackTickMode withDbName:(NSString*)dbName withTableName:(NSString*)tableName
selectedDb:(NSString*)selectedDb caretMovedLeft:(BOOL)caretMovedLeft autoComplete:(BOOL)autoComplete oneColumn:(BOOL)oneColumn
alias:(NSString*)anAlias withDBStructureRetriever:(SPDatabaseStructure *)theDatabaseStructure;
- (id) initWithItems:(NSArray *)someSuggestions
alreadyTyped:(NSString *)aUserString
staticPrefix:(NSString *)aStaticPrefix
additionalWordCharacters:(NSString *)someAdditionalWordCharacters
caseSensitive:(BOOL)isCaseSensitive
charRange:(NSRange)initRange
parseRange:(NSRange)parseRange
inView:(id)aView
dictMode:(BOOL)mode
dbMode:(BOOL)theDbMode
tabTriggerMode:(BOOL)tabTriggerMode
fuzzySearch:(BOOL)fuzzySearch
backtickMode:(NSInteger)theBackTickMode
withDbName:(NSString *)dbName
withTableName:(NSString *)tableName
selectedDb:(NSString *)selectedDb
caretMovedLeft:(BOOL)caretMovedLeft
autoComplete:(BOOL)autoComplete
oneColumn:(BOOL)oneColumn
alias:(NSString *)anAlias
withDBStructureRetriever:(SPDatabaseStructure *)theDatabaseStructure;
- (void)setCaretPos:(NSPoint)aPos;
- (void)insert_text:(NSString* )aString;
- (void)insert_text:(NSString *)aString;
- (void)insertAutocompletePlaceholder;
- (void)removeAutocompletionPlaceholderUsingFastMethod:(BOOL)useFastMethod;
- (void)adjustWorkingRangeByDelta:(NSInteger)delta;
- (void)updateSyncArrowStatus;
- (void)reInvokeCompletion;
@end
Oops, something went wrong.

0 comments on commit 720bb5f

Please sign in to comment.