aboutsummaryrefslogtreecommitdiffstats
path: root/Source/TableContent.h
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2009-09-28 10:41:24 +0000
committerBibiko <bibiko@eva.mpg.de>2009-09-28 10:41:24 +0000
commit020cfd249c9022a2b84ae64786cdcbed42102217 (patch)
tree9ca5cde48ed30641427fb14b3b9cd97de581ac38 /Source/TableContent.h
parentcc0c0a7842e3bff325fa29c71f5115361981797d (diff)
downloadsequelpro-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.h2
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;