aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPCustomQuery.m
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2010-10-09 11:04:01 +0000
committerBibiko <bibiko@eva.mpg.de>2010-10-09 11:04:01 +0000
commit6b60ddf1029b912586f80b6b7727f8083fb122ea (patch)
treef140424ab4acd2cda8fa1adf52cec74740b68a04 /Source/SPCustomQuery.m
parent869e355e7f4856dee3171520f549e32855f68dc5 (diff)
downloadsequelpro-6b60ddf1029b912586f80b6b7727f8083fb122ea.tar.gz
sequelpro-6b60ddf1029b912586f80b6b7727f8083fb122ea.tar.bz2
sequelpro-6b60ddf1029b912586f80b6b7727f8083fb122ea.zip
• enabled thumbnail images of spatial geometry fields as tooltips
- note: geometrycollection support will follow soon
Diffstat (limited to 'Source/SPCustomQuery.m')
-rw-r--r--Source/SPCustomQuery.m10
1 files changed, 9 insertions, 1 deletions
diff --git a/Source/SPCustomQuery.m b/Source/SPCustomQuery.m
index 74505e23..ca045d92 100644
--- a/Source/SPCustomQuery.m
+++ b/Source/SPCustomQuery.m
@@ -45,6 +45,7 @@
#import "SPAlertSheets.h"
#import "SPMainThreadTrampoline.h"
#import "SPCopyTable.h"
+#import "SPGeometryDataView.h"
#import <BWToolkitFramework/BWToolkitFramework.h>
@@ -2222,7 +2223,14 @@
}
}
else if ([theValue isKindOfClass:[MCPGeometryData class]]) {
- ; // TODO
+ SPGeometryDataView *v = [[SPGeometryDataView alloc] initWithCoordinates:[theValue coordinates]];
+ image = [v thumbnailImage];
+ if(image) {
+ [SPTooltip showWithObject:image atLocation:pos ofType:@"image"];
+ [v release];
+ return nil;
+ }
+ [v release];
}
// Show the cell string value as tooltip (including line breaks and tabs)