-
Notifications
You must be signed in to change notification settings - Fork 2
/
AppController.h
59 lines (48 loc) · 1.52 KB
/
AppController.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
/* -*-objc-*-
*
* Dictionary Reader - 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>
#import "DictConnection.h"
#import "HistoryManager.h"
@interface AppController : NSObject
{
@private
IBOutlet NSTextView *searchResultView;
IBOutlet NSWindow *dictionaryContentWindow;
IBOutlet NSSearchField *searchField;
IBOutlet NSButton *backButton;
IBOutlet NSButton *forwardButton;
NSMutableArray* dictionaries;
HistoryManager* historyManager;
NSArray *definitions; /* Currently displayed definitions */
#if 0
NSToolbarItem* backItem;
NSToolbarItem* forwardItem;
NSToolbarItem* searchItem;
#endif
}
- (id)init;
// Some methods called by the GUI
- (void) browseBackClicked: (id) sender;
- (void) browseForwardClicked: (id) sender;
- (void) orderFrontPreferencesPanel: (id) sender;
- (void) searchAction: (id) sender;
- (void) increaseFontSize: (id) sender;
- (void) decreaseFontSize: (id) sender;
// TextView delegate stuff
- (BOOL) textView: (NSTextView*) textView clickedOnLink: (id) link
atIndex: (unsigned) charIndex;
- (void) updateGUI;
// ...from the Links in the text field
- (void) clickSearchNotification: (NSNotification*)aNotification;
- (void) defineWord: (NSString*) aWord;
@end
@interface AppController (HistoryManagerDelegate)
- (BOOL) historyManager: (HistoryManager*) aHistoryManager
needsBrowseTo: (id) aLocation;
@end