CelestiaController.h
上传用户:center1979
上传日期:2022-07-26
资源大小:50633k
文件大小:2k
源码类别:

OpenGL

开发平台:

Visual C++

  1. //
  2. //  CelestiaController.h
  3. //  celestia
  4. //
  5. //  Created by Bob Ippolito on Tue May 28 2002.
  6. //  Copyright (C) 2007, Celestia Development Team
  7. //
  8. #import "CelestiaAppCore.h"
  9. #import "CelestiaSettings.h"
  10. #import "FavoritesDrawerController.h"
  11. #import "RenderPanelController.h"
  12. #import "BrowserWindowController.h"
  13. #define CELESTIA_RESOURCES_FOLDER @"CelestiaResources"
  14. @class CelestiaOpenGLView;
  15. @class SplashWindow;
  16. @class SplashWindowController;
  17. @class EclipseFinderController;
  18. @class ScriptsController;
  19. @interface CelestiaController : NSWindowController 
  20. {
  21.     CelestiaSettings* settings;
  22.     CelestiaAppCore* appCore;
  23.     BOOL threaded;
  24.     BOOL ready;
  25.     BOOL isDirty;
  26.     BOOL isFullScreen;
  27.     IBOutlet SplashWindowController *splashWindowController;
  28.     IBOutlet NSTextView *glInfo;
  29.     IBOutlet NSPanel *glInfoPanel;
  30.     IBOutlet CelestiaOpenGLView *glView;
  31.     NSWindow *origWindow;
  32.     IBOutlet FavoritesDrawerController *favoritesDrawerController;
  33.     IBOutlet RenderPanelController *renderPanelController;
  34.     IBOutlet ScriptsController *scriptsController;
  35.     BrowserWindowController *browserWindowController;
  36.     EclipseFinderController *eclipseFinderController;
  37.     NSWindowController *helpWindowController;
  38.     NSTimer* timer;
  39.     NSConditionLock* startupCondition;
  40.     int keyCode, keyTime;
  41.     NSString* lastScript;
  42.     NSString *pendingScript;
  43.     NSString *pendingUrl;
  44. }
  45. -(BOOL)applicationShouldTerminate:(id)sender;
  46. -(BOOL)windowShouldClose:(id)sender;
  47. -(IBAction)back:(id)sender;
  48. -(IBAction)forward:(id)sender;
  49. -(IBAction)showGLInfo:(id)sender;
  50. -(IBAction)showInfoURL:(id)sender;
  51. -(void)runScript: (NSString*) path;
  52. -(IBAction)openScript:(id)sender;
  53. -(IBAction)rerunScript: (id) sender;
  54. -(IBAction)toggleFullScreen:(id)sender;
  55. -(BOOL)hideMenuBarOnActiveScreen;
  56. -(void)setDirty;
  57. -(void)forceDisplay;
  58. -(void)resize;
  59. -(void)startInitialization;
  60. -(void)finishInitialization;
  61. -(void)display;
  62. -(void)awakeFromNib;
  63. -(void)delegateKeyDown:(NSEvent *)theEvent;
  64. -(void)keyPress:(int)code hold:(int)time;
  65. -(void)setupResourceDirectory;
  66. +(CelestiaController*) shared;
  67. -(void) fatalError: (NSString *) msg;
  68. -(IBAction) showPanel: (id) sender;
  69. -(IBAction) captureMovie: (id) sender;
  70. -(BOOL)validateMenuItem:(id)item;
  71. -(IBAction)activateMenuItem:(id)item;
  72. -(void)showHelp:(id)sender;
  73. @end