-
Notifications
You must be signed in to change notification settings - Fork 11
/
AirmacAppDelegate.h
87 lines (76 loc) · 2.76 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
75
76
77
78
79
80
81
82
83
84
85
86
87
//
// This file is part of Airmac.
//
// This version of Airmac is a continuation of Airmac version 0.4
// developed by Arend Jan Kramer, which was available at the time of
// writing from <http://code.google.com/p/airmac/>.
//
// Airmac is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Airmac is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Airmac. If not, see <http://www.gnu.org/licenses/>.
//
#import <Cocoa/Cocoa.h>
#import "HTTPServer.h"
#import <QTKit/QTKit.h>
@interface AirmacAppDelegate : NSObject <NSApplicationDelegate,AirplayDelegate,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