-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathResponseDocument.h
70 lines (52 loc) · 1.59 KB
/
ResponseDocument.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
//
// ResponseDocument.h
// Jayson
//
// Created by Ben Yellin on 12/22/10.
// Copyright 2010 Been Yelling. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import "ResponseView.h"
#import "Response.h"
#import "ResponseLoader.h"
@interface ResponseDocument : NSDocument <NSToolbarDelegate, NSComboBoxDataSource, NSUserInterfaceValidations> {
IBOutlet NSWindow *mainWindow;
IBOutlet NSView *urlFieldView;
IBOutlet NSComboBox *urlField;
IBOutlet NSProgressIndicator *downloadSpinner;
IBOutlet ResponseView *responseView;
IBOutlet NSSegmentedControl *styledControl;
NSURL *currentURL;
Response *currentResponse;
BOOL isDownloading;
NSMutableArray *history;
NSInteger currentHistoryIndex;
BOOL editingEnabled;
BOOL showStyled;
}
@property (nonatomic, retain) NSURL *currentURL;
@property (nonatomic, retain) Response *currentResponse;
- (BOOL)isEmpty;
- (IBAction)openLocation:(id)sender;
- (IBAction)showStyled:(id)sender;
- (IBAction)showRaw:(id)sender;
- (IBAction)styledChange:(id)sender;
- (void)setShowStyled:(BOOL)flag;
- (IBAction)goToLocation:(id)sender;
- (void)loadURL:(NSURL *)aURL;
- (void)updateURL:(NSURL *)aURL;
- (void)setIsDownloading:(BOOL)flag;
- (IBAction)goBack:(id)sender;
- (BOOL)canGoBack;
- (IBAction)goForward:(id)sender;
- (BOOL)canGoForward;
- (IBAction)clearHistory:(id)sender;
- (BOOL)canClearHistory;
- (IBAction)reload:(id)sender;
- (BOOL)canReload;
- (IBAction)toggleEditingEnabled:(id)sender;
- (void)setEditingEnabled:(BOOL)flag;
- (IBAction)increaseTextSize:(id)sender;
- (IBAction)decreaseTextSize:(id)sender;
- (IBAction)actualTextSize:(id)sender;
@end