From cca4f8dc17e904c516dc7e3ba8193aff5b8f9e70 Mon Sep 17 00:00:00 2001 From: Bibiko Date: Sun, 24 Jan 2010 21:39:43 +0000 Subject: =?UTF-8?q?=E2=80=A2=20added=20possibility=20to=20add=20a=20query?= =?UTF-8?q?=20favorite=20by=20user-definable=20alphanumeric=20tab=20trigge?= =?UTF-8?q?r;=20eg=20if=20tab=20trigger=20is=20set=20to=20"sel"=20sel?= =?UTF-8?q?=E2=87=A5=20will=20insert=20the=20first=20query=20which=20has?= =?UTF-8?q?=20the=20defined=20the=20tab=20trigger=20=E2=80=A2=20preparatio?= =?UTF-8?q?ns=20to=20insert=20programmable=20query=20favorites=20-=20eg=20?= =?UTF-8?q?"SELECT=20${*}=20FROM=20${Table}"=20--=20after=20insertion=20"S?= =?UTF-8?q?ELECT=20*=20FROM=20Table"=20the=20'*'=20is=20highlighted=20to?= =?UTF-8?q?=20change,=20press=20=E2=87=A5=20to=20select=20the=20next=20sni?= =?UTF-8?q?ppet=20'Table';=20=E2=87=A7=E2=87=A5=20selects=20the=20previous?= =?UTF-8?q?=20snippet;=20the=20snippet=20selection=20follows=20the=20user?= =?UTF-8?q?=20input=20-=20Note:=20not=20yet=20active?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/CMTextView.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Source/CMTextView.h') diff --git a/Source/CMTextView.h b/Source/CMTextView.h index 868e7093..137c5348 100644 --- a/Source/CMTextView.h +++ b/Source/CMTextView.h @@ -59,6 +59,11 @@ static inline void NSMutableAttributedStringAddAttributeValueRange (NSMutableAtt MCPConnection *mySQLConnection; NSInteger mySQLmajorVersion; + NSInteger snippetControlArray[20][2]; + NSInteger snippetControlCounter; + NSInteger currentSnippetIndex; + BOOL snippetWasJustInserted; + } - (IBAction)showMySQLHelpForCurrentWord:(id)sender; @@ -91,6 +96,9 @@ static inline void NSMutableAttributedStringAddAttributeValueRange (NSMutableAtt - (NSArray *)suggestionsForSQLCompletionWith:(NSString *)currentWord dictMode:(BOOL)isDictMode browseMode:(BOOL)dbBrowseMode withTableName:(NSString*)aTableName withDbName:(NSString*)aDbName; - (void) selectCurrentQuery; +- (BOOL)checkForCaretInsideSnippet; +- (void)insertFavoriteAsSnippet:(NSString*)theSnippet atRange:(NSRange)targetRange; + - (NSUInteger)characterIndexOfPoint:(NSPoint)aPoint; - (void)insertFileContentOfFile:(NSString *)aPath; -- cgit v1.2.3