forked from mitzpettel/Vidi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDBVidiWindowController.h
141 lines (111 loc) · 3.8 KB
/
DBVidiWindowController.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
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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
//
// DBVidiWindowController.h
// Vidi
//
// Created by Mitz Pettel on Sat Feb 01 2003.
// Copyright (c) 2003, 2004 Mitz Pettel. All rights reserved.
//
#import <AppKit/AppKit.h>
#import "DBMediumWindowController.h"
#define DBChangeGammaSettingName @"change gamma in full screen mode"
#define DBAspectRatioSettingName @"video aspect ratio"
#define DBHighQualitySettingName @"high quality"
#define DBDeinterlaceSettingName @"deinterlace"
#define DBSingleFieldSettingName @"single field"
#define DBMaskTopSettingName @"mask top"
#define DBMaskBottomSettingName @"mask bottom"
#define DBMaskLeftSettingName @"mask left"
#define DBMaskRightSettingName @"mask right"
@class DBDVView;
typedef enum {
DB4to3AspectRatio = 0,
DB16to9AspectRatio = 1,
DBPALSquareAspectRatio = 2,
DB16to9CropAspectRatio = 3
} DBVidiAspectRatio;
typedef struct {
DBVidiAspectRatio tag;
int clipWidthNum;
int clipWidthDenom;
int clipHeightNum;
int clipHeightDenom;
int ratioWidth;
int ratioHeight;
} AspectRatioInfo;
@class DBVidiWindow;
@interface DBVidiWindowController : DBMediumWindowController {
IBOutlet NSTextField *channelNameTextField;
IBOutlet NSPopUpButton *inputPopUp;
IBOutlet NSImageView *logoEditableImageView;
IBOutlet NSSlider *channelVolumeSlider;
IBOutlet NSPopUpButton *callKeyPopUp;
IBOutlet NSButton *settingsButton;
IBOutlet NSSlider *brightnessSlider;
IBOutlet NSSlider *contrastSlider;
IBOutlet NSSlider *saturationSlider;
IBOutlet NSView *hueControls;
IBOutlet NSSlider *hueSlider;
IBOutlet NSDrawer *settingsDrawer;
IBOutlet DBDVView *view;
IBOutlet NSView *popUp;
IBOutlet NSImageView *channelLogoDisplay;
IBOutlet NSTextField *channelNameDisplay;
IBOutlet NSSlider *fullScrVolumeSlider;
IBOutlet NSPanel *maskingPanel;
IBOutlet NSStepper *maskTopStepper;
IBOutlet NSStepper *maskBottomStepper;
IBOutlet NSStepper *maskLeftStepper;
IBOutlet NSStepper *maskRightStepper;
IBOutlet NSTextField *maskTopTextField;
IBOutlet NSTextField *maskBottomTextField;
IBOutlet NSTextField *maskLeftTextField;
IBOutlet NSTextField *maskRightTextField;
NSWindow *_popUpWindow;
DBVidiWindow *_fullScreenWindow;
DBDVView *_bigDBDVView;
DBVidiAspectRatio _fullScreenAspectRatio;
NSTrackingRectTag _hotzoneTag;
NSTrackingRectTag _popUpTag;
NSRect _popUpHiddenFrame;
NSRect _popUpShowingFrame;
BOOL _popUpActive;
BOOL _hasTuner;
BOOL _isFormac;
struct {
CGGammaValue redTable[256];
CGGammaValue greenTable[256];
CGGammaValue blueTable[256];
CGTableCount sampleCount;
} _savedTransferTables;
float _borderWidth;
float _borderHeight;
NSSize _normalViewSize;
BOOL _isFullScreen;
DBDVView *_activeView;
NSTimer *_cursorTimer;
}
- (IBAction)toggleHighQuality:(id)sender;
- (IBAction)toggleSingleField:(id)sender;
- (IBAction)toggleDeinterlace:(id)sender;
- (IBAction)takeChannelNameFrom:(id)sender;
- (IBAction)takeChannelVolumeFrom:(id)sender;
- (IBAction)takeChannelLogoFrom:(id)sender;
- (IBAction)takeChannelCallKeyFrom:(id)sender;
- (IBAction)takeChannelInputFrom:(id)sender;
- (IBAction)pictureSettingsChanged:(id)sender;
- (IBAction)takeMaskingTopFrom:(id)sender;
- (IBAction)takeMaskingLeftFrom:(id)sender;
- (IBAction)takeMaskingBottomFrom:(id)sender;
- (IBAction)takeMaskingRightFrom:(id)sender;
- (IBAction)toggleSettingsDrawer:(id)sender;
- (IBAction)zoomWindow:(id)sender;
- (IBAction)endFullScreen:(id)sender;
- (IBAction)toggleFullScreen:(id)sender;
- (IBAction)orderFrontMaskingPanel:(id)sender;
- (IBAction)takeVideoAspectRatioFrom:(id)sender;
- (void)setVideoAspectRatio:(DBVidiAspectRatio)ratio;
- (BOOL)isFullScreen;
- (void)endFullScreen;
- (void)beginFullScreen;
- (void)updatePictureSliders;
@end