-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCamera.h
More file actions
114 lines (80 loc) · 2.45 KB
/
Copy pathCamera.h
File metadata and controls
114 lines (80 loc) · 2.45 KB
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
//
// Camera.h
// Gawker
//
// Created by Phil Piwonka on 1/7/06.
// Copyright 2006 Phil Piwonka. All rights reserved.
//
#import <Cocoa/Cocoa.h>
@class CameraController;
@class QTMovieView;
@class CameraFeaturesWindowController;
@class ImageTransitionView;
@class CameraStatusView;
@interface Camera : NSWindowController {
IBOutlet ImageTransitionView *imageTransitionView;
IBOutlet QTMovieView *movieView;
IBOutlet CameraStatusView *camStatusView;
IBOutlet NSButton *recordButton;
IBOutlet NSButton *previewButton;
IBOutlet NSButton *moreButton;
IBOutlet NSTextField *timeToNextFrameField;
NSTimer *timeToNextFrameTimer;
//
// Save Accessory View and Elements
//
IBOutlet NSView *saveAccessoryView;
IBOutlet NSPopUpButton *saveQuality;
IBOutlet NSPopUpButton *saveSize;
IBOutlet NSButton *saveTime;
IBOutlet NSTextField *saveFPS;
NSSavePanel *savePanel;
NSView *saveAccessoryViewToUse;
CameraController *camController;
NSImage *icon;
NSRect nonPreviewSize;
Rect movieSize;
BOOL isPreviewing;
BOOL isScheduled;
NSDate *startTime;
NSDate *stopTime;
NSTimer *startTimer;
NSTimer *stopTimer;
BOOL openOnConnect;
BOOL isAnimating;
CameraFeaturesWindowController *camFeaturesWindow;
}
- (id)init;
- (void)dealloc;
- (void)awakeFromNib;
- (BOOL)isSourceEnabled;
- (void)setSourceEnabled;
- (void)setSourceEnabled:(BOOL)enable;
- (void)setSourceEnabled:(BOOL)enable openWindow:(BOOL)open;
- (void)showEnableError;
- (CameraController *)camController;
- (BOOL)isScheduled;
- (NSImage *)recentImage;
- (NSString *)sourceDescription;
- (NSString *)sourceSubDescription;
- (IBAction)toggleRecord:(id)sender;
- (IBAction)togglePreview:(id)sender;
- (BOOL)isRecording;
- (NSFont *)timestampFont;
- (void)setScheduledStart:(NSDate *)recStart
recordOptions:(NSDictionary *)options;
- (void)setScheduledStop:(NSDate *)recStop;
- (void)clearScheduledEvents;
- (void)scheduledStart:(NSTimer *)timer;
- (void)scheduledStop:(NSTimer *)timer;
- (NSDate *)startTime;
- (NSDate *)stopTime;
- (IBAction)showCameraFeaturesWindow:(id)sender;
- (void)closeCameraFeaturesWindow;
@end
@interface Camera (DelegateMethods)
- (void)cameraController:(CameraController *)aCamController
hasNewImage:(NSImage *)anImage;
- (void)cameraControllerConnected:(CameraController *)controller;
- (void)cameraControllerDisconnected:(CameraController *)controller;
@end