-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathAppDelegate.h
48 lines (41 loc) · 1.19 KB
/
AppDelegate.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
//
// EquaTeXAppDelegate.h
// EquaTeX
//
// Created by Thierry Coppey on 22.05.11.
// Copyright 2011 TCKnetwork. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import "TexEquation.h"
#import "EquationBar.h"
#import "PreviewBox.h"
#import "PrefsController.h"
#import "TexEditor.h"
@interface AppDelegate : NSObject <NSApplicationDelegate,NSTextFieldDelegate,EquationBarDelegate,NSSplitViewDelegate,TexEditorDelegate> {
@private
NSString* saveFile; // current file
NSDictionary* _attr; // Status attributes
TexEquation* _teq; // Equation generator
BOOL _pending;
// Toolbar
IBOutlet NSPopUpButton *popMode;
IBOutlet NSPopUpButton *popSymbols;
IBOutlet NSTextField *txtSize;
IBOutlet NSSegmentedControl *btnOptions;
// Window
IBOutlet EquationBar* bar;
IBOutlet TexEditor *editor;
IBOutlet NSTextField *txtStatus;
IBOutlet PreviewBox *boxPreview;
IBOutlet NSSplitView *mainView;
IBOutlet NSWindow *window;
// Preferences
IBOutlet PrefsController* prefs;
}
- (void)setStatus:(NSString*)status;
- (IBAction)openPrefs:(id)sender;
- (IBAction)preview:(id)sender;
- (IBAction)setSymbols:(id)sender;
- (IBAction)setOption:(NSSegmentedControl*)options;
- (IBAction)copyEquation:(id)sender;
@end