76 lines
2.3 KiB
Objective-C
76 lines
2.3 KiB
Objective-C
//
|
|
// CelestiaCore.h
|
|
// celestia
|
|
//
|
|
// Created by Bob Ippolito on Wed Jun 05 2002.
|
|
// Copyright (C) 2007, Celestia Development Team
|
|
//
|
|
|
|
#import "CelestiaFavorite.h"
|
|
#import "CelestiaFavorites.h"
|
|
#import "CelestiaSimulation.h"
|
|
#import "CelestiaRenderer.h"
|
|
|
|
|
|
#ifdef __cplusplus
|
|
class CelestiaCore;
|
|
#else
|
|
@class CelestiaCore;
|
|
#endif
|
|
|
|
@protocol SplashProgressDelegate <NSObject>
|
|
- (void)setStatusText:(NSString *)statusText;
|
|
@end
|
|
|
|
@interface CelestiaAppCore : NSObject
|
|
-(CelestiaCore*) appCore;
|
|
-(int)toCelestiaKey:(NSEvent*)theEvent;
|
|
-(int)toCelestiaModifiers:(NSEventModifierFlags)modifiers buttons:(unsigned int)buttons;
|
|
-(void)archive;
|
|
+(CelestiaAppCore *)sharedAppCore;
|
|
-(BOOL)initSimulationWithConfigPath:(NSString *)configPath extraPath:(NSString *)extraPath;
|
|
-(BOOL)initRenderer;
|
|
-(void)start:(NSDate *)date;
|
|
-(void)charEntered:(char)c withModifiers:(int)modifiers;
|
|
-(void)charEntered:(NSString *)string;
|
|
-(void)keyDown:(int)c;
|
|
-(void)keyUp:(int)c;
|
|
-(void)mouseWheel:(float)motion modifiers:(int)modifiers;
|
|
-(void)mouseButtonDown:(NSPoint)coord modifiers:(int)modifiers;
|
|
-(void)mouseButtonUp:(NSPoint)coord modifiers:(int)modifiers;
|
|
-(void)mouseMove:(NSPoint)coord;
|
|
-(void)mouseMove:(NSPoint)delta modifiers:(int)modifiers;
|
|
-(void)joystickAxis:(int)axis value:(float)value;
|
|
-(void)joystickButton:(int)button state:(BOOL)state;
|
|
-(void)resize:(NSRect)r;
|
|
-(void)draw;
|
|
-(void)tick;
|
|
-(CelestiaSimulation *)simulation;
|
|
-(CelestiaRenderer *)renderer;
|
|
-(void)showText:(NSString *)text;
|
|
-(void)activateFavorite:(id)fav;
|
|
-(CelestiaFavorites *)favorites;
|
|
-(NSTimeZone *)timeZone;
|
|
-(void)setTimeZone:(NSTimeZone *)timeZone withDate:(NSDate *)date;
|
|
-(int)textEnterMode;
|
|
-(void)cancelScript;
|
|
-(int)hudDetail;
|
|
-(void)setHudDetail:(int)hudDetail;
|
|
-(void)back;
|
|
-(void)forward;
|
|
-(NSString *) currentURL;
|
|
-(void)goToUrl:(NSString *)url;
|
|
-(void)setStartURL:(NSString *)url;
|
|
-(unsigned int) getLocationFilter;
|
|
-(void) setLocationFilter: (unsigned int) filter;
|
|
-(void)runScript:(NSString *)fileName;
|
|
-(void)showInfoURL;
|
|
-(void)keyDown:(int)c withModifiers:(int)m;
|
|
-(void)keyUp:(int)c withModifiers:(int)m;
|
|
-(unsigned int)aaSamples;
|
|
-(BOOL)glExtensionIgnored:(NSString *)extension;
|
|
-(void)setGLExtensionIgnored:(NSString *)extension;
|
|
-(BOOL) captureMovie: (NSString*)filename width: (int)width height: (int)height
|
|
frameRate: (float)framerate;
|
|
@end
|