Added NSFontPanel init:.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@3960 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
michael 1999-03-23 21:03:52 +00:00
parent 2e8fda0289
commit 93495f3d7b
4 changed files with 164 additions and 0 deletions

View file

@ -273,6 +273,8 @@ static Class fontPanelClass = Nil;
return font_menu;
}
// Get the font panel...
- (NSFontPanel *)fontPanel:(BOOL)create
{
if ((!fontPanel) && (create))
@ -280,6 +282,15 @@ static Class fontPanelClass = Nil;
return fontPanel;
}
// Bring the font panel to the front... MacOSX only?
- (void)orderFrontFontPanel:(id)sender
{
if (!fontPanel)
fontPanel = [[fontPanelClass alloc] init];
[fontPanel orderFront:nil];
}
- (BOOL)isEnabled
{
return NO;