Fixed keyboard shortcuts not working when gl window was not frontmost
parent
03f751f65a
commit
b67fe8a40f
|
@ -6,6 +6,8 @@
|
|||
// Copyright (c) 2002 Chris Laurel et al. All rights reserved.
|
||||
//
|
||||
|
||||
#import "NSWindowController_Extensions.h"
|
||||
|
||||
@interface BrowserWindowController : NSWindowController
|
||||
{
|
||||
IBOutlet NSTabView *tabView;
|
||||
|
|
|
@ -65,6 +65,7 @@
|
|||
-(void)finishInitialization;
|
||||
-(void)display;
|
||||
-(void)awakeFromNib;
|
||||
-(void)delegateKeyDown:(NSEvent *)theEvent;
|
||||
-(void)keyPress:(int)code hold:(int)time;
|
||||
-(void)setupResourceDirectory;
|
||||
+(CelestiaController*) shared;
|
||||
|
|
|
@ -493,6 +493,12 @@ NSString* fatalErrorMessage;
|
|||
isDirty = NO;
|
||||
}
|
||||
|
||||
// Catch key events even when gl window is not key
|
||||
-(void)delegateKeyDown:(NSEvent *)theEvent
|
||||
{
|
||||
[glView keyDown: theEvent];
|
||||
}
|
||||
|
||||
// Held Key Simulation Methods ----------------------------------------------------------
|
||||
|
||||
-(void) keyPress:(int) code hold: (int) time
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
//
|
||||
|
||||
#import <Cocoa/Cocoa.h>
|
||||
|
||||
#import "NSWindowController_Extensions.h"
|
||||
|
||||
@interface EclipseFinderController : NSWindowController
|
||||
{
|
||||
|
|
|
@ -1,290 +1,114 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>IBClasses</key>
|
||||
<array>
|
||||
<dict>
|
||||
<key>CLASS</key>
|
||||
<string>ContextOutlineView</string>
|
||||
<key>LANGUAGE</key>
|
||||
<string>ObjC</string>
|
||||
<key>SUPERCLASS</key>
|
||||
<string>NSOutlineView</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>CLASS</key>
|
||||
<string>SplashWindowController</string>
|
||||
<key>LANGUAGE</key>
|
||||
<string>ObjC</string>
|
||||
<key>OUTLETS</key>
|
||||
<dict>
|
||||
<key>status</key>
|
||||
<string>NSTextField</string>
|
||||
<key>version</key>
|
||||
<string>NSTextField</string>
|
||||
<key>window</key>
|
||||
<string>NSWindow</string>
|
||||
</dict>
|
||||
<key>SUPERCLASS</key>
|
||||
<string>NSObject</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>CLASS</key>
|
||||
<string>NSOutlineView</string>
|
||||
<key>LANGUAGE</key>
|
||||
<string>ObjC</string>
|
||||
<key>SUPERCLASS</key>
|
||||
<string>NSTableView</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>ACTIONS</key>
|
||||
<dict>
|
||||
<key>setTime</key>
|
||||
<string>id</string>
|
||||
<key>showWindow</key>
|
||||
<string>id</string>
|
||||
</dict>
|
||||
<key>CLASS</key>
|
||||
<string>SetTimeWindowController</string>
|
||||
<key>LANGUAGE</key>
|
||||
<string>ObjC</string>
|
||||
<key>OUTLETS</key>
|
||||
<dict>
|
||||
<key>dateField</key>
|
||||
<string>NSTextField</string>
|
||||
<key>jdField</key>
|
||||
<string>NSTextField</string>
|
||||
<key>timeField</key>
|
||||
<string>NSTextField</string>
|
||||
</dict>
|
||||
<key>SUPERCLASS</key>
|
||||
<string>NSWindowController</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>CLASS</key>
|
||||
<string>NSMenuItem</string>
|
||||
<key>LANGUAGE</key>
|
||||
<string>ObjC</string>
|
||||
<key>SUPERCLASS</key>
|
||||
<string>NSObject</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>CLASS</key>
|
||||
<string>ScriptsController</string>
|
||||
<key>LANGUAGE</key>
|
||||
<string>ObjC</string>
|
||||
<key>OUTLETS</key>
|
||||
<dict>
|
||||
<key>scriptMenu</key>
|
||||
<string>NSMenu</string>
|
||||
</dict>
|
||||
<key>SUPERCLASS</key>
|
||||
<string>NSObject</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>CLASS</key>
|
||||
<string>NSMenu</string>
|
||||
<key>LANGUAGE</key>
|
||||
<string>ObjC</string>
|
||||
<key>SUPERCLASS</key>
|
||||
<string>NSObject</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>ACTIONS</key>
|
||||
<dict>
|
||||
<key>setStatusText</key>
|
||||
<string>id</string>
|
||||
</dict>
|
||||
<key>CLASS</key>
|
||||
<string>FirstResponder</string>
|
||||
<key>LANGUAGE</key>
|
||||
<string>ObjC</string>
|
||||
<key>SUPERCLASS</key>
|
||||
<string>NSObject</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>CLASS</key>
|
||||
<string>CelestiaOpenGLView</string>
|
||||
<key>LANGUAGE</key>
|
||||
<string>ObjC</string>
|
||||
<key>OUTLETS</key>
|
||||
<dict>
|
||||
<key>controller</key>
|
||||
<string>CelestiaController</string>
|
||||
</dict>
|
||||
<key>SUPERCLASS</key>
|
||||
<string>NSOpenGLView</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>ACTIONS</key>
|
||||
<dict>
|
||||
<key>navigateTo</key>
|
||||
<string>id</string>
|
||||
<key>showWindow</key>
|
||||
<string>id</string>
|
||||
</dict>
|
||||
<key>CLASS</key>
|
||||
<string>FavoriteInfoWindowController</string>
|
||||
<key>LANGUAGE</key>
|
||||
<string>ObjC</string>
|
||||
<key>OUTLETS</key>
|
||||
<dict>
|
||||
<key>coordinateField</key>
|
||||
<string>NSTextField</string>
|
||||
<key>favoritesDrawerController</key>
|
||||
<string>id</string>
|
||||
<key>jdField</key>
|
||||
<string>NSTextField</string>
|
||||
<key>nameField</key>
|
||||
<string>NSTextField</string>
|
||||
<key>orientationField</key>
|
||||
<string>NSTextField</string>
|
||||
<key>selectionField</key>
|
||||
<string>NSTextField</string>
|
||||
</dict>
|
||||
<key>SUPERCLASS</key>
|
||||
<string>NSWindowController</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>ACTIONS</key>
|
||||
<dict>
|
||||
<key>addNewFavorite</key>
|
||||
<string>id</string>
|
||||
<key>addNewFolder</key>
|
||||
<string>id</string>
|
||||
<key>doubleClick</key>
|
||||
<string>id</string>
|
||||
</dict>
|
||||
<key>CLASS</key>
|
||||
<string>FavoritesDrawerController</string>
|
||||
<key>LANGUAGE</key>
|
||||
<string>ObjC</string>
|
||||
<key>OUTLETS</key>
|
||||
<dict>
|
||||
<key>favoriteInfoWindowController</key>
|
||||
<string>id</string>
|
||||
<key>favoritesContextMenu</key>
|
||||
<string>NSMenu</string>
|
||||
<key>favoritesMenu</key>
|
||||
<string>NSMenu</string>
|
||||
<key>outlineView</key>
|
||||
<string>ContextOutlineView</string>
|
||||
</dict>
|
||||
<key>SUPERCLASS</key>
|
||||
<string>NSObject</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>ACTIONS</key>
|
||||
<dict>
|
||||
<key>activateMenuItem</key>
|
||||
<string>id</string>
|
||||
<key>back</key>
|
||||
<string>id</string>
|
||||
<key>captureMovie</key>
|
||||
<string>id</string>
|
||||
<key>forward</key>
|
||||
<string>id</string>
|
||||
<key>openScript</key>
|
||||
<string>id</string>
|
||||
<key>rerunScript</key>
|
||||
<string>id</string>
|
||||
<key>showGLInfo</key>
|
||||
<string>id</string>
|
||||
<key>showHelp</key>
|
||||
<string>id</string>
|
||||
<key>showInfoURL</key>
|
||||
<string>id</string>
|
||||
<key>showPanel</key>
|
||||
<string>id</string>
|
||||
<key>toggleFullScreen</key>
|
||||
<string>id</string>
|
||||
</dict>
|
||||
<key>CLASS</key>
|
||||
<string>CelestiaController</string>
|
||||
<key>LANGUAGE</key>
|
||||
<string>ObjC</string>
|
||||
<key>OUTLETS</key>
|
||||
<dict>
|
||||
<key>favoritesDrawerController</key>
|
||||
<string>FavoritesDrawerController</string>
|
||||
<key>glInfo</key>
|
||||
<string>NSTextView</string>
|
||||
<key>glInfoPanel</key>
|
||||
<string>NSPanel</string>
|
||||
<key>glView</key>
|
||||
<string>CelestiaOpenGLView</string>
|
||||
<key>renderPanelController</key>
|
||||
<string>RenderPanelController</string>
|
||||
<key>scriptsController</key>
|
||||
<string>ScriptsController</string>
|
||||
<key>splashWindowController</key>
|
||||
<string>SplashWindowController</string>
|
||||
</dict>
|
||||
<key>SUPERCLASS</key>
|
||||
<string>NSWindowController</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>CLASS</key>
|
||||
<string>SplashWindow</string>
|
||||
<key>LANGUAGE</key>
|
||||
<string>ObjC</string>
|
||||
<key>SUPERCLASS</key>
|
||||
<string>NSWindow</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>CLASS</key>
|
||||
<string>SplashImageView</string>
|
||||
<key>LANGUAGE</key>
|
||||
<string>ObjC</string>
|
||||
<key>SUPERCLASS</key>
|
||||
<string>NSImageView</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>ACTIONS</key>
|
||||
<dict>
|
||||
<key>gotoObject</key>
|
||||
<string>id</string>
|
||||
<key>showWindow</key>
|
||||
<string>id</string>
|
||||
</dict>
|
||||
<key>CLASS</key>
|
||||
<string>GotoWindowController</string>
|
||||
<key>LANGUAGE</key>
|
||||
<string>ObjC</string>
|
||||
<key>OUTLETS</key>
|
||||
<dict>
|
||||
<key>distanceField</key>
|
||||
<string>NSTextField</string>
|
||||
<key>latitudeField</key>
|
||||
<string>NSTextField</string>
|
||||
<key>longitudeField</key>
|
||||
<string>NSTextField</string>
|
||||
<key>objectField</key>
|
||||
<string>NSTextField</string>
|
||||
<key>unitsButton</key>
|
||||
<string>NSPopUpButton</string>
|
||||
</dict>
|
||||
<key>SUPERCLASS</key>
|
||||
<string>NSWindowController</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>CLASS</key>
|
||||
<string>RenderPanelController</string>
|
||||
<key>LANGUAGE</key>
|
||||
<string>ObjC</string>
|
||||
<key>OUTLETS</key>
|
||||
<dict>
|
||||
<key>renderPathCautionIcon</key>
|
||||
<string>NSImageView</string>
|
||||
<key>renderPathWarning</key>
|
||||
<string>NSTextField</string>
|
||||
</dict>
|
||||
<key>SUPERCLASS</key>
|
||||
<string>NSWindowController</string>
|
||||
</dict>
|
||||
</array>
|
||||
<key>IBVersion</key>
|
||||
<string>1</string>
|
||||
</dict>
|
||||
</plist>
|
||||
{
|
||||
IBClasses = (
|
||||
{
|
||||
ACTIONS = {
|
||||
activateMenuItem = id;
|
||||
back = id;
|
||||
captureMovie = id;
|
||||
forward = id;
|
||||
openScript = id;
|
||||
rerunScript = id;
|
||||
showGLInfo = id;
|
||||
showHelp = id;
|
||||
showInfoURL = id;
|
||||
showPanel = id;
|
||||
toggleFullScreen = id;
|
||||
};
|
||||
CLASS = CelestiaController;
|
||||
LANGUAGE = ObjC;
|
||||
OUTLETS = {
|
||||
favoritesDrawerController = FavoritesDrawerController;
|
||||
glInfo = NSTextView;
|
||||
glInfoPanel = NSPanel;
|
||||
glView = CelestiaOpenGLView;
|
||||
renderPanelController = RenderPanelController;
|
||||
scriptsController = ScriptsController;
|
||||
splashWindowController = SplashWindowController;
|
||||
};
|
||||
SUPERCLASS = NSWindowController;
|
||||
},
|
||||
{
|
||||
CLASS = CelestiaOpenGLView;
|
||||
LANGUAGE = ObjC;
|
||||
OUTLETS = {controller = CelestiaController; };
|
||||
SUPERCLASS = NSOpenGLView;
|
||||
},
|
||||
{CLASS = ContextOutlineView; LANGUAGE = ObjC; SUPERCLASS = NSOutlineView; },
|
||||
{
|
||||
ACTIONS = {navigateTo = id; showWindow = id; };
|
||||
CLASS = FavoriteInfoWindowController;
|
||||
LANGUAGE = ObjC;
|
||||
OUTLETS = {
|
||||
coordinateField = NSTextField;
|
||||
favoritesDrawerController = id;
|
||||
jdField = NSTextField;
|
||||
nameField = NSTextField;
|
||||
orientationField = NSTextField;
|
||||
selectionField = NSTextField;
|
||||
};
|
||||
SUPERCLASS = NSWindowController;
|
||||
},
|
||||
{
|
||||
ACTIONS = {addNewFavorite = id; addNewFolder = id; doubleClick = id; };
|
||||
CLASS = FavoritesDrawerController;
|
||||
LANGUAGE = ObjC;
|
||||
OUTLETS = {
|
||||
favoriteInfoWindowController = id;
|
||||
favoritesContextMenu = NSMenu;
|
||||
favoritesMenu = NSMenu;
|
||||
outlineView = ContextOutlineView;
|
||||
};
|
||||
SUPERCLASS = NSWindowController;
|
||||
},
|
||||
{
|
||||
ACTIONS = {setStatusText = id; };
|
||||
CLASS = FirstResponder;
|
||||
LANGUAGE = ObjC;
|
||||
SUPERCLASS = NSObject;
|
||||
},
|
||||
{
|
||||
ACTIONS = {gotoObject = id; showWindow = id; };
|
||||
CLASS = GotoWindowController;
|
||||
LANGUAGE = ObjC;
|
||||
OUTLETS = {
|
||||
distanceField = NSTextField;
|
||||
latitudeField = NSTextField;
|
||||
longitudeField = NSTextField;
|
||||
objectField = NSTextField;
|
||||
unitsButton = NSPopUpButton;
|
||||
};
|
||||
SUPERCLASS = NSWindowController;
|
||||
},
|
||||
{CLASS = NSMenu; LANGUAGE = ObjC; SUPERCLASS = NSObject; },
|
||||
{CLASS = NSMenuItem; LANGUAGE = ObjC; SUPERCLASS = NSObject; },
|
||||
{CLASS = NSOutlineView; LANGUAGE = ObjC; SUPERCLASS = NSTableView; },
|
||||
{
|
||||
CLASS = RenderPanelController;
|
||||
LANGUAGE = ObjC;
|
||||
OUTLETS = {renderPathCautionIcon = NSImageView; renderPathWarning = NSTextField; };
|
||||
SUPERCLASS = NSWindowController;
|
||||
},
|
||||
{
|
||||
CLASS = ScriptsController;
|
||||
LANGUAGE = ObjC;
|
||||
OUTLETS = {scriptMenu = NSMenu; };
|
||||
SUPERCLASS = NSObject;
|
||||
},
|
||||
{
|
||||
ACTIONS = {setTime = id; showWindow = id; };
|
||||
CLASS = SetTimeWindowController;
|
||||
LANGUAGE = ObjC;
|
||||
OUTLETS = {dateField = NSTextField; jdField = NSTextField; timeField = NSTextField; };
|
||||
SUPERCLASS = NSWindowController;
|
||||
},
|
||||
{CLASS = SplashImageView; LANGUAGE = ObjC; SUPERCLASS = NSImageView; },
|
||||
{CLASS = SplashWindow; LANGUAGE = ObjC; SUPERCLASS = NSWindow; },
|
||||
{
|
||||
CLASS = SplashWindowController;
|
||||
LANGUAGE = ObjC;
|
||||
OUTLETS = {status = NSTextField; version = NSTextField; window = NSWindow; };
|
||||
SUPERCLASS = NSObject;
|
||||
}
|
||||
);
|
||||
IBVersion = 1;
|
||||
}
|
|
@ -1,9 +1,20 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>IBDocumentLocation</key>
|
||||
<string>45 522 356 240 0 0 1280 832 </string>
|
||||
<key>IBEditorPositions</key>
|
||||
<dict>
|
||||
<key>29</key>
|
||||
<string>47 786 761 44 0 0 1280 832 </string>
|
||||
<key>335</key>
|
||||
<string>69 291 103 118 0 0 1280 832 </string>
|
||||
<key>342</key>
|
||||
<string>69 291 123 68 0 0 1280 832 </string>
|
||||
</dict>
|
||||
<key>IBFramework Version</key>
|
||||
<string>672</string>
|
||||
<string>446.1</string>
|
||||
<key>IBLastKnownRelativeProjectPath</key>
|
||||
<string>../celestia.xcodeproj</string>
|
||||
<key>IBOldestOS</key>
|
||||
|
@ -11,11 +22,9 @@
|
|||
<key>IBOpenObjects</key>
|
||||
<array>
|
||||
<integer>29</integer>
|
||||
<integer>1565</integer>
|
||||
<integer>2271</integer>
|
||||
</array>
|
||||
<key>IBSystem Version</key>
|
||||
<string>9F33</string>
|
||||
<string>8S165</string>
|
||||
<key>targetFramework</key>
|
||||
<string>IBCocoaFramework</string>
|
||||
</dict>
|
||||
|
|
Binary file not shown.
|
@ -16,7 +16,6 @@
|
|||
IBOutlet id favoritesDrawerController;
|
||||
CelestiaFavorite* _fav;
|
||||
}
|
||||
-(IBAction)showWindow:(id)sender;
|
||||
-(IBAction)navigateTo:(id)sender;
|
||||
-(void)updateFavorite:(CelestiaFavorite*)fav;
|
||||
@end
|
||||
|
|
|
@ -1,15 +1,7 @@
|
|||
#import "FavoriteInfoWindowController.h"
|
||||
|
||||
@implementation FavoriteInfoWindowController
|
||||
-(void)awakeFromNib
|
||||
{
|
||||
_fav = nil;
|
||||
}
|
||||
- (IBAction)showWindow:(id)sender
|
||||
{
|
||||
NSLog(@"[FavoriteInfoWindowController showWindow:%@]",sender);
|
||||
[super showWindow:sender];
|
||||
}
|
||||
|
||||
-(void)updateFavorite:(CelestiaFavorite*)fav
|
||||
{
|
||||
_fav = fav;
|
||||
|
|
|
@ -3,9 +3,10 @@
|
|||
#import "CelestiaFavorite.h";
|
||||
#import "ContextOutlineView.h";
|
||||
#import "FavoriteInfoWindowController.h"
|
||||
#import "NSWindowController_Extensions.h"
|
||||
|
||||
|
||||
@interface FavoritesDrawerController : NSObject
|
||||
@interface FavoritesDrawerController : NSWindowController
|
||||
{
|
||||
NSArray *draggedNodes;
|
||||
IBOutlet ContextOutlineView *outlineView;
|
||||
|
@ -30,10 +31,6 @@ contextMenuForItem:(id)item;
|
|||
-(void)outlineView:(NSOutlineView*)olv deleteItem:(id)item;
|
||||
-(void)outlineView:(NSOutlineView*)olv editItem:(id)item;
|
||||
-(void)outlineViewSelectionDidChange:(NSNotification*)notification;
|
||||
/*
|
||||
-(BOOL)outlineView:(NSOutlineView *)olv shouldExpandItem:(id)item;
|
||||
-(void)outlineView:(NSOutlineView *)olv willDisplayCell:(NSCell *)cell forTableColumn:(NSTableColumn *)tableColumn item:(id)item;
|
||||
*/
|
||||
-(BOOL)outlineView:(NSOutlineView *)olv writeItems:(NSArray*)items toPasteboard:(NSPasteboard*)pboard;
|
||||
-(unsigned int)outlineView:(NSOutlineView*)olv validateDrop:(id <NSDraggingInfo>)info proposedItem:(id)item proposedChildIndex:(int)childIndex;
|
||||
-(void)_performDropOperation:(id <NSDraggingInfo>)info onNode:(id)pnode atIndex:(int)childIndex;
|
||||
|
|
|
@ -13,14 +13,14 @@
|
|||
@implementation MyVector
|
||||
-(void)encodeWithCoder:(NSCoder*)coder
|
||||
{
|
||||
NSLog(@"[MyVector encodeWithCoder:%@]",coder);
|
||||
// NSLog(@"[MyVector encodeWithCoder:%@]",coder);
|
||||
//[super encodeWithCoder:coder];
|
||||
[coder encodeObject:_array];
|
||||
//[coder encodeValueOfObjCType:@encode(Class) at:&_myClass];
|
||||
}
|
||||
-(id)initWithCoder:(NSCoder*)coder
|
||||
{
|
||||
NSLog(@"[MyVector initWithCoder:%@]",coder);
|
||||
// NSLog(@"[MyVector initWithCoder:%@]",coder);
|
||||
//self = [super initWithCoder:coder];
|
||||
self = [self init];
|
||||
_array = [[coder decodeObject] retain];
|
||||
|
@ -84,14 +84,14 @@
|
|||
@implementation MyTree
|
||||
-(void)encodeWithCoder:(NSCoder*)coder
|
||||
{
|
||||
NSLog(@"[MyTree encodeWithCoder:%@]",coder);
|
||||
// NSLog(@"[MyTree encodeWithCoder:%@]",coder);
|
||||
//[super encodeWithCoder:coder];
|
||||
[coder encodeObject:_nodeValue];
|
||||
[coder encodeObject:_children];
|
||||
}
|
||||
-(id)initWithCoder:(NSCoder*)coder
|
||||
{
|
||||
NSLog(@"[MyTree initWithCoder:%@]",coder);
|
||||
// NSLog(@"[MyTree initWithCoder:%@]",coder);
|
||||
//self = [super initWithCoder:coder];
|
||||
self = [self init];
|
||||
_parent = nil;
|
||||
|
@ -110,8 +110,8 @@
|
|||
}
|
||||
-(void)dealloc
|
||||
{
|
||||
NSLog(@"[MyTree dealloc]");
|
||||
NSLog(@"%@",self);
|
||||
// NSLog(@"[MyTree dealloc]");
|
||||
// NSLog(@"%@",self);
|
||||
if ([self nodeValue] != nil)
|
||||
[[self nodeValue] autorelease];
|
||||
if ([self children] != nil)
|
||||
|
|
|
@ -0,0 +1,14 @@
|
|||
//
|
||||
// NSWindowController_Extensions.h
|
||||
// celestia
|
||||
//
|
||||
// Created by Da Woon Jung on 10/1/08.
|
||||
// Copyright 2008 Celestia Development Team
|
||||
//
|
||||
|
||||
#import <Cocoa/Cocoa.h>
|
||||
|
||||
|
||||
@interface NSWindowController (CelestiaWindowController)
|
||||
- (void)keyDown:(NSEvent *)theEvent;
|
||||
@end
|
|
@ -0,0 +1,18 @@
|
|||
//
|
||||
// NSWindowController_Extensions.m
|
||||
// celestia
|
||||
//
|
||||
// Created by Da Woon Jung on 10/1/08.
|
||||
// Copyright 2008 Celestia Development Team
|
||||
//
|
||||
|
||||
#import "NSWindowController_Extensions.h"
|
||||
|
||||
|
||||
@implementation NSWindowController (CelestiaWindowController)
|
||||
|
||||
- (void)keyDown:(NSEvent *)theEvent
|
||||
{
|
||||
[[NSApp delegate] tryToPerform:@selector(delegateKeyDown:) with:theEvent];
|
||||
}
|
||||
@end
|
|
@ -6,6 +6,7 @@
|
|||
// Copyright (c) 2002 Chris Laurel. All rights reserved.
|
||||
//
|
||||
|
||||
#import "NSWindowController_Extensions.h"
|
||||
|
||||
@interface RenderPanelController : NSWindowController
|
||||
{
|
||||
|
|
|
@ -218,6 +218,7 @@
|
|||
E589B6DF078AC511005B8DD9 /* shadermanager.cpp in Sources */ = {isa = PBXBuildFile; fileRef = E589B6DB078AC511005B8DD9 /* shadermanager.cpp */; };
|
||||
E599A78E097CAB390079C254 /* Credits.rtf in Resources */ = {isa = PBXBuildFile; fileRef = E599A78C097CAB390079C254 /* Credits.rtf */; };
|
||||
E59AD8160AAB361400E2841D /* hubble.cmod in Copy Models */ = {isa = PBXBuildFile; fileRef = E59AD8150AAB361400E2841D /* hubble.cmod */; };
|
||||
E59F0B920E93A62F001A985D /* NSWindowController_Extensions.m in Sources */ = {isa = PBXBuildFile; fileRef = E59F0B900E93A62F001A985D /* NSWindowController_Extensions.m */; };
|
||||
E5A994750B1482FE009F40FA /* scriptrotation.cpp in Sources */ = {isa = PBXBuildFile; fileRef = E5A994710B1482FE009F40FA /* scriptrotation.cpp */; };
|
||||
E5A994770B1482FE009F40FA /* scriptobject.cpp in Sources */ = {isa = PBXBuildFile; fileRef = E5A994730B1482FE009F40FA /* scriptobject.cpp */; };
|
||||
E5B48EBA0C22065E00C6FBD7 /* MacInputWatcher.mm in Sources */ = {isa = PBXBuildFile; fileRef = E5B48EB80C22065E00C6FBD7 /* MacInputWatcher.mm */; };
|
||||
|
@ -586,12 +587,12 @@
|
|||
E54343110783C3F200053094 /* English */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = English; path = English.lproj/BrowserWindow.nib; sourceTree = "<group>"; };
|
||||
E54343140783C42500053094 /* BrowserWindowController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = BrowserWindowController.h; sourceTree = "<group>"; };
|
||||
E54343150783C42500053094 /* BrowserWindowController.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = BrowserWindowController.mm; sourceTree = "<group>"; };
|
||||
E54742CF09631D3600E89E09 /* defaults.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = defaults.plist; sourceTree = "<group>"; };
|
||||
E54742CF09631D3600E89E09 /* defaults.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; path = defaults.plist; sourceTree = "<group>"; };
|
||||
E561FB5D0B46164000668CFE /* CelestiaDSO.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CelestiaDSO.h; sourceTree = "<group>"; };
|
||||
E561FB5E0B46164000668CFE /* CelestiaDSO.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = CelestiaDSO.mm; sourceTree = "<group>"; };
|
||||
E561FC2D0B47910800668CFE /* CelestiaLocation.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CelestiaLocation.h; sourceTree = "<group>"; };
|
||||
E561FC2E0B47910800668CFE /* CelestiaLocation.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = CelestiaLocation.mm; sourceTree = "<group>"; };
|
||||
E564312D07769C9000E2C4A3 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
|
||||
E564312D07769C9000E2C4A3 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = Info.plist; sourceTree = "<group>"; };
|
||||
E564312E07769C9000E2C4A3 /* Celestia.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Celestia.app; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
E56431450776D52D00E2C4A3 /* celx.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = celx.cpp; path = ../src/celestia/celx.cpp; sourceTree = SOURCE_ROOT; };
|
||||
E56431460776D52D00E2C4A3 /* celx.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = celx.h; path = ../src/celestia/celx.h; sourceTree = SOURCE_ROOT; };
|
||||
|
@ -677,6 +678,8 @@
|
|||
E589B6DC078AC511005B8DD9 /* shadermanager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = shadermanager.h; path = ../src/celengine/shadermanager.h; sourceTree = SOURCE_ROOT; };
|
||||
E599A78D097CAB390079C254 /* English */ = {isa = PBXFileReference; lastKnownFileType = text.rtf; name = English; path = English.lproj/Credits.rtf; sourceTree = "<group>"; };
|
||||
E59AD8150AAB361400E2841D /* hubble.cmod */ = {isa = PBXFileReference; lastKnownFileType = file; path = hubble.cmod; sourceTree = "<group>"; };
|
||||
E59F0B8F0E93A62F001A985D /* NSWindowController_Extensions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = NSWindowController_Extensions.h; sourceTree = "<group>"; };
|
||||
E59F0B900E93A62F001A985D /* NSWindowController_Extensions.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = NSWindowController_Extensions.m; sourceTree = "<group>"; };
|
||||
E59FE8FD0934DC66000F7BDA /* fr */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = fr; path = fr.lproj/MainMenu.nib; sourceTree = "<group>"; };
|
||||
E59FE8FE0934DC7C000F7BDA /* fr */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = fr; path = fr.lproj/BrowserWindow.nib; sourceTree = "<group>"; };
|
||||
E59FE90E0934E27B000F7BDA /* fr */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = fr; path = fr.lproj/InfoPlist.strings; sourceTree = "<group>"; };
|
||||
|
@ -1733,6 +1736,7 @@
|
|||
F578B7A102B3E2DD0100020A /* NSArray_Extensions.m */,
|
||||
F578B7A002B3E2DD0100020A /* NSOutlineView_Extensions.m */,
|
||||
F55F041E02B152180100020A /* NSString_ObjCPlusPlus.mm */,
|
||||
E59F0B900E93A62F001A985D /* NSWindowController_Extensions.m */,
|
||||
F57F9FD302B94A0B01000006 /* ContextOutlineView.h */,
|
||||
E56A5AEA0848F92200A21D7E /* FullScreenWindow.h */,
|
||||
F578B7A202B3E2DD0100020A /* ImageAndTextCell.h */,
|
||||
|
@ -1741,6 +1745,7 @@
|
|||
F578B7A302B3E2DD0100020A /* NSArray_Extensions.h */,
|
||||
F578B79F02B3E2DD0100020A /* NSOutlineView_Extensions.h */,
|
||||
F55F041D02B152180100020A /* NSString_ObjCPlusPlus.h */,
|
||||
E59F0B8F0E93A62F001A985D /* NSWindowController_Extensions.h */,
|
||||
);
|
||||
name = "Cocoa Extensions";
|
||||
sourceTree = "<group>";
|
||||
|
@ -1824,7 +1829,6 @@
|
|||
29B97313FDCFA39411CA2CEA /* Project object */ = {
|
||||
isa = PBXProject;
|
||||
buildConfigurationList = E532F41D0933316100D7D5B3 /* Build configuration list for PBXProject "celestia" */;
|
||||
compatibilityVersion = "Xcode 2.4";
|
||||
hasScannedForEncodings = 0;
|
||||
knownRegions = (
|
||||
English,
|
||||
|
@ -2067,6 +2071,7 @@
|
|||
88654A280DB29585007C8027 /* celx_vector.cpp in Sources */,
|
||||
881336D80DEF5EE0001F3BC5 /* skygrid.cpp in Sources */,
|
||||
FF7B2B0E0E89B0D90089BF43 /* globular.cpp in Sources */,
|
||||
E59F0B920E93A62F001A985D /* NSWindowController_Extensions.m in Sources */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue