From 6b60ddf1029b912586f80b6b7727f8083fb122ea Mon Sep 17 00:00:00 2001 From: Bibiko Date: Sat, 9 Oct 2010 11:04:01 +0000 Subject: =?UTF-8?q?=E2=80=A2=20enabled=20thumbnail=20images=20of=20spatial?= =?UTF-8?q?=20geometry=20fields=20as=20tooltips=20-=20note:=20geometrycoll?= =?UTF-8?q?ection=20support=20will=20follow=20soon?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/SPCustomQuery.m | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'Source/SPCustomQuery.m') 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 @@ -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) -- cgit v1.2.3