mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 20:50:38 +00:00
Improved documentation
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@22026 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
03d0ff1ee0
commit
df23b41b8b
2 changed files with 14 additions and 24 deletions
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
* Source/NSControl.m : Improved documentation
|
* Source/NSControl.m : Improved documentation
|
||||||
* Source/NSCustomImageRep.m : Improved documentation
|
* Source/NSCustomImageRep.m : Improved documentation
|
||||||
|
* Source/NSFontPanel.m : Improved documentation
|
||||||
|
|
||||||
2005-11-16 fabien <fabien@sonappart.net>
|
2005-11-16 fabien <fabien@sonappart.net>
|
||||||
|
|
||||||
|
|
|
@ -111,8 +111,7 @@ static float sizes[] = {4.0, 6.0, 8.0, 9.0, 10.0, 11.0, 12.0, 13.0,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/** <p>Creates ( if needed ) and returns the shared NSFontPanel</p>
|
||||||
* Creating an NSFontPanel
|
|
||||||
*/
|
*/
|
||||||
+ (NSFontPanel*) sharedFontPanel
|
+ (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];
|
[super dealloc];
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/** <p>Returns whether the "set" button is enabled</p>
|
||||||
* Enabling
|
<p>See Also: -setEnabled:</p>
|
||||||
*/
|
*/
|
||||||
- (BOOL) isEnabled
|
- (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];
|
return [setButton isEnabled];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**<p>Sets whether the "set" button is enabled</p>
|
||||||
|
<p>See Also: -isEnabled</p>
|
||||||
|
*/
|
||||||
- (void) setEnabled: (BOOL)flag
|
- (void) setEnabled: (BOOL)flag
|
||||||
{
|
{
|
||||||
NSButton *setButton = [[self contentView] viewWithTag: NSFPSetButton];
|
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]];
|
isMultiple: [fm isMultiple]];
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/** <p> TODO </p>
|
||||||
* Setting the Font
|
*
|
||||||
*/
|
*/
|
||||||
- (void) setPanelFont: (NSFont *)fontObject
|
- (void) setPanelFont: (NSFont *)fontObject
|
||||||
isMultiple: (BOOL)flag
|
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;
|
return YES;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/** <p>Returns the NSFontPanel's accessory view</p>
|
||||||
* Configuring the NSFontPanel
|
<p>See Also: -setAccessoryView:</p>
|
||||||
*/
|
*/
|
||||||
- (NSView*) accessoryView
|
- (NSView*) accessoryView
|
||||||
{
|
{
|
||||||
return _accessoryView;
|
return _accessoryView;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/** <p>Adds the NSFontPanel's accessory view</p>
|
||||||
- (void) setAccessoryView: (NSView*)aView
|
<p>See Also: -accessoryView</p>
|
||||||
{
|
*/
|
||||||
|
|
||||||
// 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];
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
|
|
||||||
- (void) setAccessoryView: (NSView*)aView
|
- (void) setAccessoryView: (NSView*)aView
|
||||||
{
|
{
|
||||||
NSRect accessoryViewFrame, bottomFrame;
|
NSRect accessoryViewFrame, bottomFrame;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue