-
Notifications
You must be signed in to change notification settings - Fork 11
/
TSServiceInputRulesWindowController.h
70 lines (47 loc) · 1.96 KB
/
TSServiceInputRulesWindowController.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
//
// TSServiceInputRulesWindowController.h
// ThisService
//
// Created by Jesper on 2011-07-17.
// Copyright 2011-2012 waffle software. All rights reserved.
// BSD licensed - see license.txt for more information.
//
#import <Cocoa/Cocoa.h>
#import "TSCheckedListDataSource.h"
@class TSServiceInputRules;
@class TSServiceInputRulesWindowController;
@protocol TSServiceInputRulesWindowControllerDelegate
- (void)serviceInputRulesWindowController:(TSServiceInputRulesWindowController *)windowController savedChanges:(TSServiceInputRules *)newRules;
- (void)serviceInputRulesWindowControllerCancelled:(TSServiceInputRulesWindowController *)windowController;
@end
@interface TSServiceInputRulesWindowController : NSWindowController <TSCheckedListDataSourceDelegate> {
TSServiceInputRules *initialInputRules;
id<TSServiceInputRulesWindowControllerDelegate> editor;
IBOutlet NSPanel *inputRulesPanel;
TSCheckedListDataSource *writingSystemCheckedListDataSource;
IBOutlet NSTableView *writingSystemTableView;
BOOL constrainsByWritingSystem;
TSCheckedListDataSource *contentTypeCheckedListDataSource;
IBOutlet NSTableView *contentTypeTableView;
BOOL constrainsByContentType;
TSCheckedListDataSource *languageCheckedListDataSource;
IBOutlet NSTableView *languageTableView;
BOOL constrainsByLanguage;
BOOL constrainsByWordLimit;
NSInteger wordLimit;
}
- (void)setEditor:(id<TSServiceInputRulesWindowControllerDelegate>)newEditor;
- (void)setInitialInputRules:(TSServiceInputRules *)initialInputRules;
- (void)setConstrainsByWritingSystem:(BOOL)c;
- (BOOL)constrainsByWritingSystem;
- (void)setConstrainsByContentType:(BOOL)c;
- (BOOL)constrainsByContentType;
- (void)setConstrainsByWordLimit:(BOOL)c;
- (BOOL)constrainsByWordLimit;
- (void)setConstrainsByLanguage:(BOOL)c;
- (BOOL)constrainsByLanguage;
- (void)setWordLimit:(NSInteger)wordLimit;
- (NSInteger)wordLimit;
- (IBAction)okayInputRulesSheet:(id)sender;
- (IBAction)cancelInputRulesSheet:(id)sender;
@end