[Fuse-for-macosx-commits] SF.net SVN: fuse-for-macosx:[592] trunk/fuse/fusepb
Brought to you by:
fredm
From: <fr...@us...> - 2009-01-18 03:22:20
|
Revision: 592 http://fuse-for-macosx.svn.sourceforge.net/fuse-for-macosx/?rev=592&view=rev Author: fredm Date: 2009-01-18 01:35:29 +0000 (Sun, 18 Jan 2009) Log Message: ----------- Change the keyboard viewer to a panel rather than a window so it doesn't block Fuse from closing when quitting the emulator. Also make it resizable. Modified Paths: -------------- trunk/fuse/fusepb/controllers/KeyboardController.m trunk/fuse/fusepb/nibs/Keyboard.nib/classes.nib trunk/fuse/fusepb/nibs/Keyboard.nib/info.nib trunk/fuse/fusepb/nibs/Keyboard.nib/keyedobjects.nib Modified: trunk/fuse/fusepb/controllers/KeyboardController.m =================================================================== --- trunk/fuse/fusepb/controllers/KeyboardController.m 2009-01-15 20:42:25 UTC (rev 591) +++ trunk/fuse/fusepb/controllers/KeyboardController.m 2009-01-18 01:35:29 UTC (rev 592) @@ -62,6 +62,12 @@ [super dealloc]; } +-(void) awakeFromNib +{ + /* keep the window in the standard aspect ratio if the user resizes */ + [[self window] setContentAspectRatio:NSMakeSize(541.0,201.0)]; +} + - (void)showWindow:(id)sender { [super showWindow:sender]; Modified: trunk/fuse/fusepb/nibs/Keyboard.nib/classes.nib =================================================================== --- trunk/fuse/fusepb/nibs/Keyboard.nib/classes.nib 2009-01-15 20:42:25 UTC (rev 591) +++ trunk/fuse/fusepb/nibs/Keyboard.nib/classes.nib 2009-01-18 01:35:29 UTC (rev 592) @@ -1,12 +1,39 @@ -{ - IBClasses = ( - {CLASS = FirstResponder; LANGUAGE = ObjC; SUPERCLASS = NSObject; }, - { - CLASS = KeyboardController; - LANGUAGE = ObjC; - OUTLETS = {keyboardView = NSImageView; }; - SUPERCLASS = NSWindowController; - } - ); - IBVersion = 1; -} \ No newline at end of file +<?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>FirstResponder</string> + <key>LANGUAGE</key> + <string>ObjC</string> + <key>SUPERCLASS</key> + <string>NSObject</string> + </dict> + <dict> + <key>ACTIONS</key> + <dict> + <key>showCloseWindow</key> + <string>id</string> + <key>showWindow</key> + <string>id</string> + </dict> + <key>CLASS</key> + <string>KeyboardController</string> + <key>LANGUAGE</key> + <string>ObjC</string> + <key>OUTLETS</key> + <dict> + <key>keyboardView</key> + <string>NSImageView</string> + </dict> + <key>SUPERCLASS</key> + <string>NSWindowController</string> + </dict> + </array> + <key>IBVersion</key> + <string>1</string> +</dict> +</plist> Modified: trunk/fuse/fusepb/nibs/Keyboard.nib/info.nib =================================================================== --- trunk/fuse/fusepb/nibs/Keyboard.nib/info.nib 2009-01-15 20:42:25 UTC (rev 591) +++ trunk/fuse/fusepb/nibs/Keyboard.nib/info.nib 2009-01-18 01:35:29 UTC (rev 592) @@ -1,16 +1,20 @@ <?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> +<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> - <key>IBDocumentLocation</key> - <string>153 73 356 240 0 0 1152 746 </string> <key>IBFramework Version</key> - <string>349.0</string> + <string>672</string> + <key>IBLastKnownRelativeProjectPath</key> + <string>../Fuse.xcodeproj</string> + <key>IBOldestOS</key> + <integer>5</integer> <key>IBOpenObjects</key> <array> - <integer>5</integer> + <integer>15</integer> </array> <key>IBSystem Version</key> - <string>7D24</string> + <string>9G55</string> + <key>targetFramework</key> + <string>IBCocoaFramework</string> </dict> </plist> Modified: trunk/fuse/fusepb/nibs/Keyboard.nib/keyedobjects.nib =================================================================== (Binary files differ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |