diff options
author | Bibiko <bibiko@eva.mpg.de> | 2009-08-20 11:16:14 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2009-08-20 11:16:14 +0000 |
commit | be6b947b45c4e7e883c6369316feebfa01ef75c8 (patch) | |
tree | 208e3312874aa3e22e96363be89504d4765b1e88 /Source/CustomQuery.m | |
parent | 25b8ef5121716a1b68982a7aacdc38322f179c8f (diff) | |
download | sequelpro-be6b947b45c4e7e883c6369316feebfa01ef75c8.tar.gz sequelpro-be6b947b45c4e7e883c6369316feebfa01ef75c8.tar.bz2 sequelpro-be6b947b45c4e7e883c6369316feebfa01ef75c8.zip |
• Main Menu > File
- renamed "Open" into "Open…" plus tooltip
- added "Save Query…" (enabled if a query is in the editor and rename 'Query' to 'Queries' dynamically) [still hidden]
- added "Save Connection…" [still hidden]
• added method numberOfQueries to CustomQuery
• 'Save Query…" and "Save Connection…" are bound to the same connector distinguished via their tags
Diffstat (limited to 'Source/CustomQuery.m')
-rw-r--r-- | Source/CustomQuery.m | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/CustomQuery.m b/Source/CustomQuery.m index 891cb38e..faa86221 100644 --- a/Source/CustomQuery.m +++ b/Source/CustomQuery.m @@ -808,6 +808,7 @@ if([[textView textStorage] editedMask] != 0) { customQueryParser = [[SPSQLParser alloc] initWithString:[textView string]]; queries = [[NSArray alloc] initWithArray:[customQueryParser splitSqlStringIntoRangesByCharacter:';']]; + numberOfQueries = [queries count]; if(currentQueryRanges) [currentQueryRanges release]; currentQueryRanges = [[NSArray arrayWithArray:queries] retain]; @@ -2531,6 +2532,12 @@ #pragma mark - #pragma mark Other + +- (unsigned int)numberOfQueries +{ + return numberOfQueries; +} + /* * This method is called as part of Key Value Observing which is used to watch for prefernce changes which effect the interface. */ |