-
Notifications
You must be signed in to change notification settings - Fork 38
/
IGKWindowController.h
133 lines (89 loc) · 3.13 KB
/
IGKWindowController.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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
//
// IGKWindowController.h
// Ingredients
//
// Created by Alex Gordon on 23/01/2010.
// Copyright 2010 Fileability. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import <WebKit/WebKit.h>
#import "IGKHTMLGenerator.h"
@class BWSplitView;
@class IGKApplicationDelegate;
@class IGKSourceListWallpaperView;
@class IGKArrayController;
typedef enum {
CHDocumentationBrowserUIMode_BrowserOnly=0,
CHDocumentationBrowserUIMode_TwoUp=1,
CHDocumentationBrowserUIMode_AdvancedSearch=2,
CHDocumentationBrowserUIMode_NeedsSetup=20
} CHDocumentationBrowserUIMode;
@interface IGKWindowController : NSWindowController
{
IGKApplicationDelegate *appDelegate;
//*** Basic Structure ***
IBOutlet NSWindow *window;
IBOutlet NSView *contentView;
IBOutlet NSView *twoPaneView;
IBOutlet BWSplitView *twoPaneSplitView;
IBOutlet BWSplitView *twoPaneContentsSplitView;
//*** Browser View ***
IBOutlet NSView *browserView;
IBOutlet NSTextField *browserViewTitle;
IBOutlet NSTextField *browserViewPath;
IBOutlet NSView *browserWebViewContainer;
IBOutlet WebView *browserWebView;
IBOutlet NSTextField *urlField;
IBOutlet NSView *browserTopbar;
IBOutlet NSView *browserToolbar;
//*** No Selection ***
IBOutlet NSView *noselectionView;
IBOutlet NSPopUpButton *noselectionPopupButton;
IBOutlet NSTextField *noselectionSearchField;
IGKHTMLDisplayTypeMask acceptableDisplayTypes;
//*** Side Search ***
IBOutlet IGKArrayController *sideSearchController;
IBOutlet NSView *sideSearchView;
IBOutlet NSSearchField *sideSearchViewField;
IBOutlet NSTableView *sideSearchViewResults;
NSMutableArray *sideSearchResults;
NSPredicate *sideFilterPredicate;
NSSortDescriptor *sideSortDescriptor;
NSString *sideSearchQuery;
//*** Table of Contents ***
IBOutlet NSView *tableOfContentsView;
IBOutlet NSTableView *tableOfContentsTableView;
NSMutableArray *tableOfContentsItems;
//*** Advanced Search ***
IBOutlet IGKArrayController *advancedController;
IBOutlet NSView *searchView;
IBOutlet NSSearchField *searchViewField;
IBOutlet NSPredicateEditor *searchViewPredicateEditor;
IBOutlet NSTableView *searchViewTable;
NSPredicate *advancedFilterPredicate;
//*** Other ***
IGKSourceListWallpaperView *wallpaperView;
int currentModeIndex;
BOOL awaken;
BOOL shouldIndex;
BOOL isIndexing;
NSManagedObjectID *currentObjectIDInBrowser;
NSArray *selectedFilterDocset;
}
@property (assign) IGKApplicationDelegate *appDelegate;
@property (assign) NSPredicate *sideFilterPredicate;
@property (assign) NSPredicate *advancedFilterPredicate;
@property (assign) NSNumber *ui_currentModeIndex;
@property (assign) BOOL shouldIndex;
@property (assign) NSArray *selectedFilterDocset;
- (IBAction)noselectionSearchField:(id)sender;
- (IBAction)changeSelectedFilterDocset:(id)sender;
- (IBAction)executeSearch:(id)sender;
- (IBAction)executeAdvancedSearch:(id)sender;
- (IBAction)changeViewModeTagged:(id)sender;
- (IBAction)backForward:(id)sender;
- (IBAction)changeViewMode:(id)sender;
- (IBAction)openInSafari:(id)sender;
- (void)setBrowserActive:(BOOL)active;
- (void)tableViewSelectionDidChange:(NSNotification *)aNotification;
@end