mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 08:50:57 +00:00
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:
parent
2e8fda0289
commit
93495f3d7b
4 changed files with 164 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue