1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
|
/*
* PQSamplerController.h - Font Manager
*
* Controller for font sampler.
*
* Copyright 2007 Isaiah Beerbower.
*
* Author: Isaiah Beerbower
* Created: 05/24/07
* License: Modified BSD license (see file COPYING)
*/
#import <Foundation/Foundation.h>
#import <AppKit/AppKit.h>
#import "PQFontSampleView.h"
@interface PQSampleController : NSObject
{
id sampleView;
NSComboBox *sampleField;
NSPopUpButton *samplePopUpButton;
NSComboBox *sizeField;
NSSlider *sizeSlider;
NSColorWell *foregroundColorWell;
NSColorWell *backgroundColorWell;
NSArray *fonts;
NSArray *defaultSampleText;
NSMutableArray *sampleTextHistory;
NSArray *sizes;
BOOL fontsNeedUpdate;
BOOL isCustom;
}
- (void) setFonts: (NSArray *)someFonts;
- (NSArray *) fonts;
- (void) setSampleTextHistory: (NSArray *)aHistory;
- (NSArray *) sampleTextHistory;
- (void) changeSize: (id)sender;
- (void) changeColor: (id)sender;
- (void) changeSampleText: (id)sender;
- (void) updateControls;
@end
|