aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPTableContent.m
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2010-10-15 13:07:01 +0000
committerBibiko <bibiko@eva.mpg.de>2010-10-15 13:07:01 +0000
commit067ad13b4b78a6477687ede0da89e288cff69ba0 (patch)
tree70f7f218d7b4a492105908b12c3db59cdc67c5df /Source/SPTableContent.m
parent64ac1e5d62427841df47f862a1017e49e2b34aa5 (diff)
downloadsequelpro-067ad13b4b78a6477687ede0da89e288cff69ba0.tar.gz
sequelpro-067ad13b4b78a6477687ede0da89e288cff69ba0.tar.bz2
sequelpro-067ad13b4b78a6477687ede0da89e288cff69ba0.zip
• implemented filter content type 'spatial' with general spatial operators for usage as filter of spatial fields
Diffstat (limited to 'Source/SPTableContent.m')
-rw-r--r--Source/SPTableContent.m4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/SPTableContent.m b/Source/SPTableContent.m
index f6174366..5a130b96 100644
--- a/Source/SPTableContent.m
+++ b/Source/SPTableContent.m
@@ -135,6 +135,7 @@
[numberOfDefaultFilters setObject:[NSNumber numberWithInteger:[[contentFilters objectForKey:@"number"] count]] forKey:@"number"];
[numberOfDefaultFilters setObject:[NSNumber numberWithInteger:[[contentFilters objectForKey:@"date"] count]] forKey:@"date"];
[numberOfDefaultFilters setObject:[NSNumber numberWithInteger:[[contentFilters objectForKey:@"string"] count]] forKey:@"string"];
+ [numberOfDefaultFilters setObject:[NSNumber numberWithInteger:[[contentFilters objectForKey:@"spatial"] count]] forKey:@"spatial"];
}
kCellEditorErrorNoMatch = NSLocalizedString(@"Field is not editable. No matching record found.\nReload table, check the encoding, or try to add\na primary key field or more fields\nin the view declaration of '%@' to identify\nfield origin unambiguously.", @"Table Content result editing error - could not identify original row");
@@ -2242,6 +2243,9 @@
compareType = @"number";
// [argumentField setFormatter:numberFormatter];
+ } else if ([fieldTypeGrouping isEqualToString:@"geometry"]) {
+ compareType = @"spatial";
+
} else {
compareType = @"";
NSBeep();