From 6560b2e188308d41d16c1e5d8c5b3bc05dbae8fe Mon Sep 17 00:00:00 2001 From: Bibiko Date: Tue, 9 Mar 2010 15:00:52 +0000 Subject: =?UTF-8?q?=E2=80=A2=20added=20$SP=5FASLIST=5FALL=5FFIELDS=5FFROM?= =?UTF-8?q?=5FSELECTED=5FTABLE=20as=20pre-defined=20snippet=20list=20?= =?UTF-8?q?=E2=80=A2=20added=20Show=20Completion=20List=20submenu=20to=20t?= =?UTF-8?q?he=20Custom=20Query=20Editor=20gear=20menu=20with=20the=20items?= =?UTF-8?q?=20all=20dbs=20^1,=20all=20tables=20^2,=20all=20fields=20^3=20?= =?UTF-8?q?=E2=80=A2=20if=20dbStructure=20is=20available=20show=20these=20?= =?UTF-8?q?pre-defined=20completion=20lists=20with=20all=20info=20like=20t?= =?UTF-8?q?he=20completion=20it=20does,=20otherwise=20fall=20back=20to=20p?= =?UTF-8?q?lain=20style?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/CustomQuery.m | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'Source/CustomQuery.m') diff --git a/Source/CustomQuery.m b/Source/CustomQuery.m index 2e26f08e..0d4207a0 100644 --- a/Source/CustomQuery.m +++ b/Source/CustomQuery.m @@ -2454,6 +2454,21 @@ [self helpTargetValidation]; } +- (IBAction)showCompletionList:(id)sender +{ + NSRange insertRange = NSMakeRange([textView selectedRange].location, 0); + switch([sender tag]) { + case 8000: + [textView showCompletionListFor:@"$SP_ASLIST_ALL_DATABASES" atRange:insertRange fuzzySearch:NO]; + break; + case 8001: + [textView showCompletionListFor:@"$SP_ASLIST_ALL_TABLES" atRange:insertRange fuzzySearch:NO]; + break; + case 8002: + [textView showCompletionListFor:@"$SP_ASLIST_ALL_FIELDS_FROM_SELECTED_TABLE" atRange:insertRange fuzzySearch:NO]; + break; + } +} /* * Show the data for "HELP 'currentWord' invoked by autohelp" */ -- cgit v1.2.3