Improved documentation

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@22153 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fabien Vallon 2005-12-05 15:56:03 +00:00
parent f3369579f0
commit a2e2bb6167
2 changed files with 25 additions and 2 deletions

View file

@ -4,6 +4,7 @@
* Source/NSFontManager.m: Improved documentation
* Source/NSFontPanel.m: Improved documentation
* Source/NSMatrix.m: Improved documentation
* Source/NSPanel.m: Improved documentation
2005-12-04 Fabien VALLON <fabien@sonappart.net>

View file

@ -89,14 +89,19 @@
[super keyDown: theEvent];
}
/*
* Determining the Panel's Behavior
/**<p>Returns whether the NSPanel is a floating panel, e.g. the window level
is NSFloatingWindowLevel instead of NSNormalWindowLevel.</p>
<p>See Also: -setFloatingPanel: </p>
*/
- (BOOL) isFloatingPanel
{
return _isFloatingPanel;
}
/**<p>Sets whether the NSPanel is a floating panel, e.g. the window level
is NSFloatingWindowLevel instead of NSNormalWindowLevel.</p>
<p>See Also: -isFloatingPanel [NSWindow-setLevel:]</p>
*/
- (void) setFloatingPanel: (BOOL)flag
{
if (_isFloatingPanel != flag)
@ -113,21 +118,38 @@
}
}
/**<p>Returns whether the NSPanel can receive events when another window/panel
runs modally.</p><p>See Also: -setWorksWhenModal:
[NSApplication-runModalSession:]</p>
*/
- (BOOL) worksWhenModal
{
return _worksWhenModal;
}
/**<p>Sets whether the NSPanel can receive events when another window/panel
runs modally.</p>See Also: -worksWhenModal [NSApplication-runModalSession:]
*/
- (void) setWorksWhenModal: (BOOL)flag
{
_worksWhenModal = flag;
}
/**<p>Returns whether if the NSPanel becomes key window only when a view
require to be the first responder.</p>
<p>See Also: -setBecomesKeyOnlyIfNeeded: [NSView-needsPanelToBecomeKey]
[NSWindow-sendEvent:]</p>
*/
- (BOOL) becomesKeyOnlyIfNeeded
{
return _becomesKeyOnlyIfNeeded;
}
/**<p>Sets whether if the NSPanel becomes key window only when a view
require to be the first responder.</p>
<p>See Also: -setBecomesKeyOnlyIfNeeded: [NSView-needsPanelToBecomeKey]
[NSWindow-sendEvent:]</p>
*/
- (void) setBecomesKeyOnlyIfNeeded: (BOOL)flag
{
_becomesKeyOnlyIfNeeded = flag;