-
Notifications
You must be signed in to change notification settings - Fork 2
/
EtherTeXAppDelegate.h
47 lines (37 loc) · 1.21 KB
/
EtherTeXAppDelegate.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
//
// EtherTeXAppDelegate.h
// EtherTeX
//
// Created by Uwe Dauernheim on 11.10.09.
// Copyright 2009 Kreisquadratur. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import <WebKit/WebKit.h>
#import <Quartz/Quartz.h>
#include <SystemConfiguration/SystemConfiguration.h>
@interface EtherTeXAppDelegate : NSObject <NSApplicationDelegate> {
NSWindow *mainWindow;
NSWindow *preferenceWindow;
IBOutlet WebView *webView;
IBOutlet PDFView *pdfView;
IBOutlet NSProgressIndicator *parserIndicator;
NSString *tempfilePath;
NSUserDefaults *defaults;
}
int DOWNLOAD_TIMEOUT = 60;
int PDFLATEX_STATUS_SUCCESS = 0;
int PDFLATEX_STATUS_FAILURE = 1;
@property (assign) IBOutlet NSWindow *mainWindow;
@property (assign) IBOutlet NSWindow *preferenceWindow;
@property (assign) IBOutlet WebView *webView;
@property (assign) IBOutlet PDFView *pdfView;
@property (assign) IBOutlet NSProgressIndicator *parserIndicator;
@property (copy) NSString *tempfilePath;
@property (assign) NSUserDefaults *defaults;
- (void)checkForConnectivity;
- (void)searchForAndSetPDFLatexPath;
- (void)warnNoPDFLatexAvailable;
- (void)startDownloadingURL;
- (void)parseTeXFile;
- (BOOL)checkParserResult:(int)resultStatus outputText:(NSString *)outputText;
@end