-
Notifications
You must be signed in to change notification settings - Fork 20
/
AirmacAppDelegate.h
74 lines (63 loc) · 2.04 KB
/
AirmacAppDelegate.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
71
72
73
74
//
// AirmacAppDelegate.h
// Airmac
//
// Created by Arend Jan Kramer on 08-05-11.
// Copyright 2011 Sizzit. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import "HTTPServer.h"
#import <QTKit/QTKit.h>
@interface AirmacAppDelegate : NSObject <NSApplicationDelegate,NSWindowDelegate> {
NSPanel *aboutWindow;
// Image slideshow
NSPanel *imageWindow;
NSImageView *fullScreenbg;
NSImageView *imageView1;
NSImageView *imageView2;
int CurrentImageView;
NSTrackingArea *imageHoverTracker;
NSView *hoverControls;
NSButton *fullScreenBtn;
CGPoint windowedModeLocation;
BOOL imageFullscreen;
BOOL videoFullscreen;
int hideCounter;
// Voorkeuren paneel
NSWindow *prefWindow;
NSButton *_startVideoFullScreenCheckBox;
NSButton *_startImageSlideshowFullScreenCheckBox;
// Error paneel
NSPanel *errorWindow;
NSTextField *errorTextField;
HTTPServer *server;
BOOL _serverIsStarted;
// Menu icoontje
NSStatusItem *myStatusItem;
IBOutlet NSMenu *myStatusMenu;
IBOutlet NSMenuItem *serverStatus;
IBOutlet NSMenuItem *toggleServer;
}
- (void) checkForUpdates;
- (void) startServer;
- (void) toggleServerStatusMenuItem:(BOOL)started;
- (void)setImageWindowHoverActions;
- (IBAction) toggleFullScreen:(id)sender;
- (IBAction) toggleServer:(id)sender;
- (IBAction) about:(id)sender;
- (IBAction) quit:(id)sender;
- (IBAction) errorOk:(id)sender;
- (IBAction) preferences:(id)sender;
@property (assign) IBOutlet NSPanel *aboutWindow;
@property (assign) IBOutlet NSPanel *imageWindow;
@property (assign) IBOutlet NSView *hoverControls;
@property (assign) IBOutlet NSButton *fullScreenBtn;
@property (assign) IBOutlet NSWindow *prefWindow;
@property (assign) IBOutlet NSPanel *errorWindow;
@property (assign) IBOutlet NSTextField *errorTextField;
@property (assign) IBOutlet NSImageView *imageView1;
@property (assign) IBOutlet NSImageView *imageView2;
@property (assign) IBOutlet NSImageView *fullScreenbg;
@property (assign) IBOutlet NSButton *_startVideoFullScreenCheckBox;
@property (assign) IBOutlet NSButton *_startImageSlideshowFullScreenCheckBox;
@end