forked from hac/googlebookdownloader
-
Notifications
You must be signed in to change notification settings - Fork 0
/
MyDocument.h
45 lines (31 loc) · 1.08 KB
/
MyDocument.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
#import <Cocoa/Cocoa.h>
// The PDF is a Quartz object.
#import <Quartz/Quartz.h>
#import "GoogleBook.h"
#import "GoogleBookDelegate.h"
@interface MyDocument : NSDocument <GoogleBookDelegate>
{
IBOutlet NSTextField *locationBar;
// These are for the save sheet:
NSSavePanel *savePanel;
IBOutlet NSView *formatChooserView;
IBOutlet NSPopUpButton *formatChooserButton;
IBOutlet NSTextField *startPage, *pageLimit;
BOOL saveAsFolder;
// These are in the progress indicator sheet:
IBOutlet NSTextField *progressLabel;
IBOutlet NSProgressIndicator *progressIndicator;
IBOutlet NSButton *cancelButton;
// This is the book that downloads and compiles our book data.
GoogleBook *book;
NSString *savePath;
// This is where we hold all the data when the user is choosing a place to save the file.
PDFDocument *pdfDocument;
// Remember the last error encountered in these strings.
NSString *errorMessage, *errorInformation;
BOOL userWantsToAbort;
}
- (IBAction)beginDownload:(id)sender;
- (IBAction)cancelDownload:(id)sender;
- (IBAction)saveFormatChanged:(id)sender;
@end