blob: afa2fb7f9fa8cd67489771d3bd9f26a86c1da137 (
plain)
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
|
/* $Id: Controller.h,v 1.5 2003/11/09 19:43:06 titer Exp $
This file is part of the HandBrake source code.
Homepage: <http://handbrake.m0k.org/>.
It may be used under the terms of the GNU General Public License. */
#include <Cocoa/Cocoa.h>
#include "HandBrake.h"
#include "PictureGLView.h"
#include "TargetSizeField.h"
@interface HBController : NSObject
{
bool fDie;
IBOutlet NSWindow * fWindow;
/* Scan view */
IBOutlet NSView * fScanView;
IBOutlet NSMatrix * fScanMatrix;
IBOutlet NSPopUpButton * fDVDPopUp;
IBOutlet NSTextField * fDVDFolderField;
IBOutlet NSButton * fScanBrowseButton;
IBOutlet NSTextField * fScanStatusField;
IBOutlet NSProgressIndicator * fScanProgress;
IBOutlet NSButton * fScanButton;
IBOutlet NSView * fTempView;
/* Rip view */
IBOutlet NSView * fRipView;
/* Video box */
IBOutlet NSPopUpButton * fTitlePopUp;
IBOutlet NSPopUpButton * fVideoCodecPopUp;
IBOutlet NSMatrix * fVideoMatrix;
IBOutlet NSTextField * fCustomBitrateField;
IBOutlet HBTargetSizeField * fTargetSizeField;
IBOutlet NSButton * fTwoPassCheck;
IBOutlet NSButton * fCropButton;
/* Audio box */
IBOutlet NSPopUpButton * fLanguagePopUp;
IBOutlet NSPopUpButton * fSecondaryLanguagePopUp;
IBOutlet NSPopUpButton * fAudioCodecPopUp;
IBOutlet NSPopUpButton * fAudioBitratePopUp;
/* Destination box */
IBOutlet NSPopUpButton * fFileFormatPopUp;
IBOutlet NSTextField * fFileField;
IBOutlet NSButton * fFileBrowseButton;
/* Bottom */
IBOutlet NSTextField * fRipStatusField;
IBOutlet NSTextField * fRipInfoField;
IBOutlet NSProgressIndicator * fRipProgress;
IBOutlet NSButton * fSuspendButton;
IBOutlet NSButton * fRipButton;
/* "Done" alert panel */
IBOutlet NSPanel * fDonePanel;
/* Crop & scale panel */
IBOutlet NSPanel * fPicturePanel;
IBOutlet HBPictureGLView * fPictureGLView;
IBOutlet NSTextField * fWidthField;
IBOutlet NSStepper * fWidthStepper;
IBOutlet NSButton * fDeinterlaceCheck;
IBOutlet NSTextField * fTopField;
IBOutlet NSStepper * fTopStepper;
IBOutlet NSTextField * fBottomField;
IBOutlet NSStepper * fBottomStepper;
IBOutlet NSTextField * fLeftField;
IBOutlet NSStepper * fLeftStepper;
IBOutlet NSTextField * fRightField;
IBOutlet NSStepper * fRightStepper;
IBOutlet NSTextField * fInfoField;
IBOutlet NSButton * fOpenGLCheck;
IBOutlet NSButton * fPreviousButton;
IBOutlet NSButton * fNextButton;
int fPicture;
HBHandle * fHandle;
HBList * fTitleList;
}
- (IBAction) ScanMatrixChanged: (id) sender;
- (IBAction) BrowseDVD: (id) sender;
- (void) BrowseDVDDone: (NSOpenPanel *) sheet
returnCode: (int) returnCode contextInfo: (void *) contextInfo;
- (IBAction) Scan: (id) sender;
- (IBAction) TitlePopUpChanged: (id) sender;
- (IBAction) VideoMatrixChanged: (id) sender;
- (IBAction) AudioPopUpChanged: (id) sender;
- (IBAction) BrowseFile: (id) sender;
- (void) BrowseFileDone: (NSSavePanel *) sheet
returnCode: (int) returnCode contextInfo: (void *) contextInfo;
- (IBAction) ShowPicturePanel: (id) sender;
- (IBAction) ClosePanel: (id) sender;
- (IBAction) Rip: (id) sender;
- (void) OverwriteAlertDone: (NSWindow *) sheet
returnCode: (int) returnCode contextInfo: (void *) contextInfo;
- (void) _Rip;
- (IBAction) Cancel: (id) sender;
- (IBAction) Suspend: (id) sender;
- (IBAction) Resume: (id) sender;
- (IBAction) PreviousPicture: (id) sender;
- (IBAction) NextPicture: (id) sender;
- (IBAction) UpdatePicture: (id) sender;
- (void) UpdateIntf: (NSTimer *) timer;
- (void) DetectDrives: (NSNotification *) notification;
@end
|