-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLutrinWindowController.h
62 lines (51 loc) · 1.75 KB
/
LutrinWindowController.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
//
// LutrinWindowController.h
// lutrin
//
// Created by Shigeru Hagiwara on 2012/12/20.
//
//
#import <Cocoa/Cocoa.h>
@class SingleViewController;
@class DoubleViewController;
@interface LutrinWindowController : NSWindowController <NSWindowDelegate>
{
IBOutlet NSBox *box;
IBOutlet NSMenuItem *singleMenuItem;
IBOutlet NSMenuItem *leftToRightMenuItem;
IBOutlet NSMenuItem *rightToLeftMenuItem;
SingleViewController *singleViewController;
DoubleViewController *doubleViewController;
SingleViewController *currentViewController;
BOOL isFullScreen;
NSRect originalWindowRect;
NSUInteger originalStyleMask;
NSInteger originalWindowLevel;
NSString *originalTitle;
}
@property (assign) NSBox *box;
@property (assign) NSMenuItem *singleMenuItem;
@property (assign) NSMenuItem *leftToRightMenuItem;
@property (assign) NSMenuItem *rightToLeftMenuItem;
@property (retain) SingleViewController *singleViewController;
@property (retain) DoubleViewController *doubleViewController;
@property (assign) SingleViewController *currentViewController;
@property (copy) NSString *originalTitle;
- (void)setupViewController;
- (void)openFileImpl:(NSURL *)url;
- (void)clearImageView;
- (void)setWindowTitle:(NSString *)newTitle;
- (IBAction)displaySingleViewController:(id)sender;
- (IBAction)displayDoubleViewLeftToRight:(id)sender;
- (IBAction)displayDoubleViewRightToLeft:(id)sender;
- (IBAction)openFile:(id)sender;
- (IBAction)nextFile:(id)sender;
- (IBAction)prevFile:(id)sender;
- (IBAction)firstFile:(id)sender;
- (IBAction)lastFile:(id)sender;
- (IBAction)zoomActualSize:(id)sender;
- (IBAction)zoomFitToWindow:(id)sender;
- (IBAction)zoomIn:(id)sender;
- (IBAction)zoomOut:(id)sender;
- (IBAction)toggleFullScreen:(id)sender;
@end