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
|
#import <Foundation/Foundation.h>
extern const NSUInteger NoStringEncoding;
extern const NSInteger WantsAutomaticTag;
@interface EncodingPopUpButtonCell : NSPopUpButtonCell {
}
@end
@interface EncodingManager : NSObject {
@private
IBOutlet NSMatrix *encodingMatrix;
NSArray *encodings;
}
/* There is just one instance...
*/
+ (EncodingManager *)sharedInstance;
/* List of encodings that should be shown in encoding lists
*/
- (NSArray *)enabledEncodings;
/* Empties then initializes the supplied popup with the supported encodings.
*/
- (void)setupPopUpCell:(EncodingPopUpButtonCell *)button selectedEncoding:(NSStringEncoding)selectedEncoding withDefaultEntry:(BOOL)includeDefaultItem;
/* Action methods for bringing up and dealing with changes in the encodings list panel
*/
- (IBAction)showPanel:(id)sender;
- (IBAction)encodingListChanged:(id)sender;
- (IBAction)clearAll:(id)sender;
- (IBAction)selectAll:(id)sender;
- (IBAction)revertToDefault:(id)sender;
/* Internal method to save and communicate changes to the encoding list
*/
- (void)noteEncodingListChange:(BOOL)writeDefault updateList:(BOOL)updateList postNotification:(BOOL)post;
@end
|