-
Notifications
You must be signed in to change notification settings - Fork 2
/
Preferences.h
58 lines (44 loc) · 1.31 KB
/
Preferences.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
/*
* DictionaryReader - A Dict client for GNUstep
* Copyright (C) 2006 Guenther Noack
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the MIT license. See COPYING.
*/
#import <AppKit/AppKit.h>
#ifdef ETOILE
#import <EtoileUI/UKNibOwner.h>
#else
#import "UKNibOwner.h"
#endif
/**
* This notification is sent through the default notification center whenever the
* selection of the active dictionaries changes. The notification object is an array
* that contains the new active dictionaries.
*/
static NSString* DRActiveDictsChangedNotification = @"DRActiveDictsChangedNotification";
/**
* This is the controller class for the preferences panel.
*/
@interface Preferences : UKNibOwner
{
NSTableView* _tableView;
NSPanel* _prefPanel;
NSMutableArray* _dictionaries;
}
// Singleton
+ (id) shared;
- (void) setDictionaries: (NSMutableArray*) dicts;
- (void) rescanDictionaries: (id)sender;
- (void) show;
@end
@interface Preferences (SearchForDictionaries)
// The file to store the dictionary list to
-(NSString*) dictionaryStoreFile;
-(void) foundDictionary: (id)aDictionary;
- (void) searchWithDictionaryStoreFile;
-(void) searchInUsualPlaces;
-(void) searchInDirectory: (NSString*) dirName;
@end
@interface Preferences (DictionarySelectionDataSource)
@end