Fixed Goto Location dialog for Mac OS X version.
parent
f9457d32a6
commit
c13040f280
|
@ -143,12 +143,11 @@ FrameOfReference getFrame() const;
|
|||
return [[[CelestiaSelection alloc] initWithSelection:[self simulation]->findObjectFromPath([s stdString], true)] autorelease];
|
||||
}
|
||||
|
||||
/*
|
||||
-(void)gotoSelection:(NSNumber*)gotoTime up:(CelestiaVector*)up coordinateSystem:(NSString*)csysName
|
||||
{
|
||||
[self simulation]->gotoSelection(
|
||||
[gotoTime doubleValue],
|
||||
[up vec3f],
|
||||
[up vector3f],
|
||||
(ObserverFrame::CoordinateSystem)[[Astro coordinateSystem:csysName] intValue]);
|
||||
}
|
||||
|
||||
|
@ -158,7 +157,7 @@ FrameOfReference getFrame() const;
|
|||
[self simulation]->gotoSelection(
|
||||
[gotoTime doubleValue],
|
||||
[distance doubleValue],
|
||||
[up vec3f],
|
||||
[up vector3f],
|
||||
(ObserverFrame::CoordinateSystem)[[Astro coordinateSystem:csysName] intValue]);
|
||||
}
|
||||
|
||||
|
@ -169,9 +168,8 @@ FrameOfReference getFrame() const;
|
|||
[distance doubleValue],
|
||||
[longitude floatValue],
|
||||
[latitude floatValue],
|
||||
[up vec3f]);
|
||||
[up vector3f]);
|
||||
}
|
||||
*/
|
||||
|
||||
-(NSArray*)getSelectionLongLat
|
||||
{
|
||||
|
|
|
@ -94,7 +94,7 @@
|
|||
break;
|
||||
}
|
||||
}
|
||||
distance = [[Astro kilometersToLightYears:[NSNumber numberWithDouble:distance]] doubleValue];
|
||||
|
||||
up = [CelestiaVector vectorWithx:[NSNumber numberWithFloat:0.0] y:[NSNumber numberWithFloat:1.0] z:[NSNumber numberWithFloat:0.0]];
|
||||
if ([[latitudeField stringValue] length] && [[longitudeField stringValue] length])
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue