[Chlor-commits] SF.net SVN: chlor: [556] trunk/src
Status: Pre-Alpha
Brought to you by:
lenny222
From: Chlor c. to s. <chl...@li...> - 2007-06-03 16:51:15
|
Revision: 556 http://svn.sourceforge.net/chlor/?rev=556&view=rev Author: lenny222 Date: 2007-06-03 09:51:11 -0700 (Sun, 03 Jun 2007) Log Message: ----------- add some menu items Modified Paths: -------------- trunk/src/Chlor.xcodeproj/project.pbxproj trunk/src/English.lproj/EditPalette.nib/keyedobjects.nib trunk/src/English.lproj/MainMenu.nib/info.nib trunk/src/English.lproj/MainMenu.nib/objects.nib trunk/src/gui/CColorSelectView.m trunk/src/gui/CEditPaletteController.m trunk/src/gui/CToolPaletteController.m Modified: trunk/src/Chlor.xcodeproj/project.pbxproj =================================================================== (Binary files differ) Modified: trunk/src/English.lproj/EditPalette.nib/keyedobjects.nib =================================================================== (Binary files differ) Modified: trunk/src/English.lproj/MainMenu.nib/info.nib =================================================================== (Binary files differ) Modified: trunk/src/English.lproj/MainMenu.nib/objects.nib =================================================================== (Binary files differ) Modified: trunk/src/gui/CColorSelectView.m =================================================================== --- trunk/src/gui/CColorSelectView.m 2007-06-03 16:24:15 UTC (rev 555) +++ trunk/src/gui/CColorSelectView.m 2007-06-03 16:51:11 UTC (rev 556) @@ -180,4 +180,6 @@ [[NSColorPanel sharedColorPanel] makeKeyAndOrderFront: self]; } + + @end Modified: trunk/src/gui/CEditPaletteController.m =================================================================== --- trunk/src/gui/CEditPaletteController.m 2007-06-03 16:24:15 UTC (rev 555) +++ trunk/src/gui/CEditPaletteController.m 2007-06-03 16:51:11 UTC (rev 556) @@ -53,4 +53,25 @@ [self showWindow: self]; } +- (void) windowDidLoad +{ + [super windowDidLoad]; + + // Do not cascade the edit palette. + [self setShouldCascadeWindows: NO]; + + // Sets the name under which the window's frame is saved in the defaults database. + [self setWindowFrameAutosaveName: @"EditPalette"]; + + // Get the panel. + NSAssert( + [[self window] isKindOfClass: [NSPanel class]], + @"Edit window is not an NSPanel!" ); + + NSPanel* panel = (NSPanel*) [self window]; + + // The panel should not grab focus. + [panel setBecomesKeyOnlyIfNeeded: YES]; +} + @end Modified: trunk/src/gui/CToolPaletteController.m =================================================================== --- trunk/src/gui/CToolPaletteController.m 2007-06-03 16:24:15 UTC (rev 555) +++ trunk/src/gui/CToolPaletteController.m 2007-06-03 16:51:11 UTC (rev 556) @@ -180,20 +180,22 @@ // Do not cascade the tool palette. [self setShouldCascadeWindows: NO]; + // Sets the name under which the window's frame is saved in the defaults database. [self setWindowFrameAutosaveName: @"ToolPalette"]; + // Call setDocument: once. [self setDocument: [self document]]; - // Get the tool panel. + // Get the panel. NSAssert( [[self window] isKindOfClass: [NSPanel class]], @"Tool window is not an NSPanel!" ); - NSPanel* toolPanel = (NSPanel*) [self window]; + NSPanel* panel = (NSPanel*) [self window]; - // The tool panel should not grab focus. - [toolPanel setBecomesKeyOnlyIfNeeded: YES]; + // The panel should not grab focus. + [panel setBecomesKeyOnlyIfNeeded: YES]; } @end This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |