diff options
author | Bibiko <bibiko@eva.mpg.de> | 2009-09-28 10:41:24 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2009-09-28 10:41:24 +0000 |
commit | 020cfd249c9022a2b84ae64786cdcbed42102217 (patch) | |
tree | 9ca5cde48ed30641427fb14b3b9cd97de581ac38 /Source/TableContent.h | |
parent | cc0c0a7842e3bff325fa29c71f5115361981797d (diff) | |
download | sequelpro-020cfd249c9022a2b84ae64786cdcbed42102217.tar.gz sequelpro-020cfd249c9022a2b84ae64786cdcbed42102217.tar.bz2 sequelpro-020cfd249c9022a2b84ae64786cdcbed42102217.zip |
• rewrote the content filter logic:
- all default filters come from "ContentFilters.plist" which can be localized
main structure:
<plist>
<dict>
<key>number</key>
<array/>
<key>string</key>
<array/>
<key>date</key>
<array/>
</dict>
</plist>
filter item structure: [ ${} is a place holder for an argument ]
<dict>
<key>MenuLabel</key>
<string>BETWEEN</string>
<key>Tooltip>
<string>a tooltip</string>
<key>NumberOfArguments</key>
<integer>2</integer>
<key>ConjunctionLabels</key>
<array>
<string>AND</string>
</array>
<key>Clause</key>
<string>BETWEEN '${}' AND '${}'</string>
</dict>
- if NumberOfArguments == 0 then start filtering automatically
- now one can save his/her own filters in SP's preferences.plist (GUI follows soon)
- fixed issue for filters requiring two arguments that pressing RETURN if one is in the second argument input field invokes "Filter"
- added string operators: "IS EMPTY" and "IS NOT EMPTY"
- fixed issue that now one is able to look for eg \n in string fields
Diffstat (limited to 'Source/TableContent.h')
-rw-r--r-- | Source/TableContent.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/TableContent.h b/Source/TableContent.h index 75b342f6..a498189b 100644 --- a/Source/TableContent.h +++ b/Source/TableContent.h @@ -67,6 +67,8 @@ NSUserDefaults *prefs; int currentlyEditingRow, maxNumRows; + NSMutableDictionary *contentFilters; + BOOL sortColumnToRestoreIsAsc; NSString *sortColumnToRestore; unsigned int limitStartPositionToRestore; |