/***************************************************************************
FontPreferencesController.h
-------------------
begin : Sat Aug 14 19:19:30 CDT 2004
copyright : (C) 2005 by Andrew Ruder
email : aeruder@ksu.edu
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
@class FontPreferencesController, NSString;
extern NSString *GNUstepOutputChatFont;
extern NSString *GNUstepOutputBoldChatFont;
extern NSString *GNUstepOutputUserListFont;
extern NSString *GNUstepOutputWrapIndent;
#ifndef FONT_PREFERENCES_CONTROLLER_H
#define FONT_PREFERENCES_CONTROLLER_H
#import <Foundation/NSObject.h>
#import <AppKit/NSView.h>
@class NSString, NSImage, NSFont;
@class NSView, NSImage, NSTextField, NSButton;
@class PreferencesController, NSStepper;
@interface FontPreferencesController : NSObject
{
NSView *preferencesView;
NSImage *preferencesIcon;
BOOL activated;
NSButton *userFontButton;
NSButton *chatFontButton;
NSButton *boldFontButton;
NSTextField *chatFontField;
NSTextField *boldFontField;
NSTextField *userFontField;
NSTextField *wrapIndentField;
id fontSetView;
id lastView;
}
+ (NSFont *)getFontFromPreferences: (NSString *)aPrefName;
+ (NSFont *)getFontFromPreferences: (NSString *)aPrefName ofSize: (float)aSize;
- (void)hitFontButton: (NSButton *)aButton;
- (void)setWrapIndent: (NSTextField *)aField;
- (NSString *)preferencesName;
- (NSImage *)preferencesIcon;
- (NSView *)preferencesView;
- (void)activate: (PreferencesController *)aPrefs;
- (void)deactivate;
@end
@interface FontPreferencesFontView : NSView
{
id delegate;
}
- (void)setDelegate: aDelegate;
@end
#endif
syntax highlighted by Code2HTML, v. 0.9.1