forked from KosmicTask/Fragaria
-
Notifications
You must be signed in to change notification settings - Fork 0
/
MGSFragaria.h
74 lines (61 loc) · 2.16 KB
/
MGSFragaria.h
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
/*
* MGSFragaria.h
* Fragaria
*
* Created by Jonathan on 30/04/2010.
* Copyright 2010 mugginsoft.com. All rights reserved.
*
*/
// valid keys for
// - (void)setObject:(id)object forKey:(id)key;
// - (id)objectForKey:(id)key;
// BOOL
extern NSString * const MGSFOIsSyntaxColoured;
extern NSString * const MGSFOShowLineNumberGutter;
extern NSString * const MGSFOIsEdited;
// string
extern NSString * const MGSFOSyntaxDefinitionName;
extern NSString * const MGSFODocumentName;
// integer
extern NSString * const MGSFOGutterWidth;
// NSView *
extern NSString * const ro_MGSFOTextView; // readonly
extern NSString * const ro_MGSFOScrollView; // readonly
extern NSString * const ro_MGSFOGutterScrollView; // readonly
// NSObject
extern NSString * const MGSFODelegate;
extern NSString * const ro_MGSFOLineNumbers; // readonly
extern NSString * const ro_MGSFOSyntaxColouring; // readonly
@class MGSTextMenuController;
@class MGSExtraInterfaceController;
#import "MGSFragariaPreferences.h"
@interface MGSFragaria : NSObject
{
@private
id _docSpec;
MGSExtraInterfaceController *extraInterfaceController;
}
@property (nonatomic, readonly) MGSExtraInterfaceController *extraInterfaceController;
+ (id)currentInstance;
+ (void)setCurrentInstance:(MGSFragaria *)anInstance;
+ (void)initializeFramework;
+ (id)createDocSpec;
+ (void)docSpec:(id)docSpec setString:(NSString *)string;
+ (void)docSpec:(id)docSpec setString:(NSString *)string options:(NSDictionary *)options;
+ (NSString *)stringForDocSpec:(id)docSpec;
+ (NSAttributedString *)attributedStringForDocSpec:(id)docSpec;
+ (NSAttributedString *)attributedStringWithTemporaryAttributesAppliedForDocSpec:(id)docSpec;
+ (NSString *)stringForDocSpec:(id)docSpec;
- (id)initWithObject:(id)object;
- (void)setObject:(id)object forKey:(id)key;
- (id)objectForKey:(id)key;
- (void)embedInView:(NSView *)view;
- (void)setString:(NSString *)aString;
- (void)setString:(NSString *)aString options:(NSDictionary *)options;
- (NSAttributedString *)attributedString;
- (NSAttributedString *)attributedStringWithTemporaryAttributesApplied;
- (NSString *)string;
- (id)docSpec;
- (NSTextView *)textView;
- (MGSTextMenuController *)textMenuController;
@end