From 9a1ecdba410f8fa54b71b11fafe08435b6ca44d3 Mon Sep 17 00:00:00 2001 From: Fabien Vallon Date: Fri, 18 Nov 2005 15:12:37 +0000 Subject: [PATCH] Improved documentation git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@22038 72102866-910b-0410-8b05-ffd578937521 --- ChangeLog | 3 ++ Source/NSBox.m | 76 ++++++++++++++++++++++---------------------------- 2 files changed, 36 insertions(+), 43 deletions(-) diff --git a/ChangeLog b/ChangeLog index 5d18fec70..0eafb576b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -6,6 +6,9 @@ * Source/NSSavePanel.m: Improved documentation * Source/NSOpenPanel.m: Improved documentation * Source/NSApplication.m: Improved documentation + * Source/NSBitmapImageRep.m: Improved documentation + * Source/NSBox.m: Improved documentation + 2005-11-17 fabien diff --git a/Source/NSBox.m b/Source/NSBox.m index f14b93896..b4443170e 100644 --- a/Source/NSBox.m +++ b/Source/NSBox.m @@ -50,7 +50,6 @@ *

EXPLAINS NSBox

*

TODO : explains how is resized the rects (margins etc...)

*/ - @implementation NSBox // @@ -105,20 +104,19 @@ return _border_rect; } -/** - *

Returns the border type. See NSBorderType for more informations

- *

See Also: -setBorderType:

+/**

Returns the border type. See + NSBorderType for more informations. The default border type is + NSGrooveBorder

See Also: -setBorderType:

*/ - (NSBorderType) borderType { return _border_type; } -/** - *

Sets the border type to aType, resizes the content view frame if needed, - * and sends a -setNeedsDisplay: message. See NSBorderType for more - * informations

- *

See Also: -borderType

+/**

Sets the border type to aType, resizes the content view frame if needed, + and marks self for display. See + NSBorderType for more informations. The default boder type is + NSGrooveBorder.

See Also: -borderType

*/ - (void) setBorderType: (NSBorderType)aType { @@ -130,16 +128,14 @@ } } -/** - *

Sets the title (cell) to aString, resizes the content view frame - * and send a -setNeedsDisplay: message.

- *

Warning: This method does not implement the Cocoa behaviour

- *

See Also: -title

+/**

Sets the title cell to aString, resizes the content view frame + and marks self for display.

+

Warning: This method does not implement the Cocoa behaviour

+

See Also: -title

*/ - -// TODO: implement the macosx behaviour for setTitle: - (void) setTitle: (NSString *)aString { + // TODO: implement the macosx behaviour for setTitle: [_cell setStringValue: aString]; [_content_view setFrame: [self calcSizesAllowingNegative: NO]]; [self setNeedsDisplay: YES]; @@ -153,8 +149,8 @@ } /** - *

Sets the font of the title (cell) to fontObj, resizes - * the content view frame if needed and sends a -setNeedsDisplay: message

+ *

Sets the font of the title cell to fontObj, resizes + * the content view frame if needed and marks self for display.

*

See Also: -titleFont

*/ - (void) setTitleFont: (NSFont *)fontObj @@ -164,12 +160,10 @@ [self setNeedsDisplay: YES]; } -/** - *

Sets the title (cell) position to aPosition, resizes the content - *view frame if needed and sends a -setNeedsDisplay: message. - *See NSTitlePosition for more information

- *

See Also: -titlePosition

- * +/**

Sets the title cell position to aPosition, resizes the content + *view frame and marks self for display. See NSTitlePosition for more information. + The default postion is NSAtTop.

See Also: -titlePosition

*/ - (void) setTitlePosition: (NSTitlePosition)aPosition { @@ -181,8 +175,7 @@ } } -/** - *

Returns the title (cell) string

+/**

Returns the title cell string value

*

See Also: -setTitle:

*/ - (NSString*) title @@ -199,8 +192,7 @@ return _cell; } -/** - *

Returns the the box title font

+/**

Returns the title cell font

*

See Also: -setTitleFont:

*/ - (NSFont*) titleFont @@ -208,9 +200,9 @@ return [_cell font]; } -/** - *

Returns the title position. See NSTitlePosition for more informations

- *

See Also: -setTitlePosition:

+/**

Returns the title position. See + NSTitlePosition for more information. The default position is NSAtTop. +

See Also: -setTitlePosition:

*/ - (NSTitlePosition) titlePosition { @@ -234,12 +226,11 @@ return _content_view; } -/** - *

Returns an NSSize containing the interior margins of the receiver. - * An NSBox's content view margins are empty space that is subtracted - * from the top, bottom, and sides as padding between the inside of the box - * and the frame of its content view

- *

See Also: -setContentViewMargins:

+/**

Returns an NSSize containing the interior margins of the receiver. + An NSBox's content view margins are empty space that is subtracted + from the top, bottom, and sides as padding between the inside of the box + and the frame of its content view

+

See Also: -setContentViewMargins:

*/ - (NSSize) contentViewMargins { @@ -263,12 +254,11 @@ } } -/** - *

Sets the margins size of the content view to offsetSize, resized the - *content view frame if needed and sends a -setNeedsDisplay message. - * See -contentView for more informations to know how the contentView frame - *is resized

- *

See Also: -contentViewMargins

+/**

Sets the NSSize containing the interior margins to offsetSize. + An NSBox's content view margins are empty space that is subtracted + from the top, bottom, and sides as padding between the inside of the box + and the frame of its content view

+

See Also: -contentViewMargins

*/ - (void) setContentViewMargins: (NSSize)offsetSize {