diff --git a/ChangeLog b/ChangeLog index cd17d9bbb..568a95cd9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,7 @@ * Source/NSControl.m : Improved documentation * Source/NSCustomImageRep.m : Improved documentation + * Source/NSFontPanel.m : Improved documentation 2005-11-16 fabien diff --git a/Source/NSFontPanel.m b/Source/NSFontPanel.m index 89641d2e4..10ffdf710 100644 --- a/Source/NSFontPanel.m +++ b/Source/NSFontPanel.m @@ -111,8 +111,7 @@ static float sizes[] = {4.0, 6.0, 8.0, 9.0, 10.0, 11.0, 12.0, 13.0, } } -/* - * Creating an NSFontPanel +/**

Creates ( if needed ) and returns the shared NSFontPanel

*/ + (NSFontPanel*) sharedFontPanel { @@ -156,8 +155,8 @@ static float sizes[] = {4.0, 6.0, 8.0, 9.0, 10.0, 11.0, 12.0, 13.0, [super dealloc]; } -/* - * Enabling +/**

Returns whether the "set" button is enabled

+

See Also: -setEnabled:

*/ - (BOOL) isEnabled { @@ -166,6 +165,9 @@ static float sizes[] = {4.0, 6.0, 8.0, 9.0, 10.0, 11.0, 12.0, 13.0, return [setButton isEnabled]; } +/**

Sets whether the "set" button is enabled

+

See Also: -isEnabled

+ */ - (void) setEnabled: (BOOL)flag { NSButton *setButton = [[self contentView] viewWithTag: NSFPSetButton]; @@ -213,8 +215,8 @@ static float sizes[] = {4.0, 6.0, 8.0, 9.0, 10.0, 11.0, 12.0, 13.0, isMultiple: [fm isMultiple]]; } -/* - * Setting the Font +/**

TODO

+ * */ - (void) setPanelFont: (NSFont *)fontObject isMultiple: (BOOL)flag @@ -331,30 +333,17 @@ static float sizes[] = {4.0, 6.0, 8.0, 9.0, 10.0, 11.0, 12.0, 13.0, return YES; } -/* - * Configuring the NSFontPanel +/**

Returns the NSFontPanel's accessory view

+

See Also: -setAccessoryView:

*/ - (NSView*) accessoryView { return _accessoryView; } -/* -- (void) setAccessoryView: (NSView*)aView -{ - - // FIXME: We have to resize - // Perhaps we could copy the code from NSSavePanel over to here - if (_accessoryView != nil) - { - [_accessoryView removeFromSuperview]; - } - - ASSIGN(_accessoryView, aView); - [[self contentView] addSubview: aView]; -} -*/ - +/**

Adds the NSFontPanel's accessory view

+

See Also: -accessoryView

+ */ - (void) setAccessoryView: (NSView*)aView { NSRect accessoryViewFrame, bottomFrame;